I have an RHTML(Ruby onrails) page contains a JavaScript validation function that is activated onSubmit. The function contains a series of IF statements to alert the user to any blanks contained in the form elements.i am using a pop up calender to enter the date to text field.
i want to make sure a user enters a date, the date is valid ...but i should be able to enter only previous 7 days date..if it is not so i should display an ErrorMessage="D ate must be within one week of today's date" ...
can i do this in client side or should i try it from server side.
if anyone know about this plz let me know.
i want to make sure a user enters a date, the date is valid ...but i should be able to enter only previous 7 days date..if it is not so i should display an ErrorMessage="D ate must be within one week of today's date" ...
can i do this in client side or should i try it from server side.
if anyone know about this plz let me know.
Comment