Jquery to validate textbox fields in the website.
I have a popup or say a div having 6 text fields. I have got first textfield focused on load event. NowI want jquery code to attain following functionalities:
1. On enter key or tab key press it should be checked if the textbox is empty, if so focus on the same
textbox else move on the next text box.
2. But on click event user can opt out for some other textbox (even if the current textbox is empty)
3. The div has an Add button which initailly is disabled (which I ll take care of), and the Add button should
get enabled only when all the fields are non empty.
**One of the textfields will be email and on will be password. Please use jquery to validate email and
also the password field should have functionalities 1 and 2.
** All the textbox fields have random ids.
I need this solution today itself as i have to implement tommorow. Its urgent.
Regards
Dn