EMAIL Field Validation is not working, when i enter SPACE and press TAB.
Hi,
I am new to JQuery and I want to show some message when i press SPACE on my eMail Id field and enter TAB. If i use jquery's default JS validations for email validations, it is not showing any message dynamically when i just press space and press tab. But it is showing jquery specific message, if i submit the form(also doing all other email validations after submit button is clicked), So, I thought of writing my own validation functions using the following logic.
if("#emailId".val().trim().length == 0)
{
alert(" Email Id cannot be blank ");
//TODO: show some message on UI.
}
If any one has done this before, please guide me.. Any help is highly appreciated.
Thanks,
Ravi.