I don't understand how the client side scripting feature works.
For example I have a text field for people to enter in their date of birth. I want to call a function I have called checkDOB, in this function I parse the date and calculate the age. If the age matches the right age, then display the submit link, else it will display an alert to the user stating that you have to be 13 or over.
I have the client side code all written, but I can't make out where to put it all. I placed the call to the function in the question for onblur, looked at the code and it looks good there. I added in the function in both the custom javascript file in both fields there, but it doesn't work in either. From what I see this should work, but it doesn't.
Can anyone tell me how to get this working?
Thanks.