You can't get away without calling get Element By Id though.
Most often, the purpose of data validation is to ensure correct user input.
I want to validate the number that was entered by comparing it to an SQL table which contains a list of valid employee numbers.
I want to ensure that the employee number entered in the text box is also contained in the SQL table.
Check out examples here If you need to manipulate the date, i.e.
if you want to convert it through code then you need to split the string up using the Split function and then combine it in the correct order again.
You are currently viewing the BOOK: Beginning Java Script section of the Wrox Programmer to Programmer discussions.