Skip to Content
0
Former Member
Jul 18, 2008 at 05:20 AM

validation code required

23 Views

Hi,

I have created an application which has 2 input fields : period_from & period_to and a Search button.

on clicking the search button a table with the required fields corresponding to the values selected gets displayed.

My requirement is to limit the length of the 2 input fields: period_from & period_to TO 7digits and that the user has to enter the period in "MM.YYYY" format. In case the length exceeds or the format is incorrect , an error message should get displayed.

Can anyone help me with the validation code??

Regards,

Anurupa