we have a form consists of some form fields those are mandotory fields and two buttons submit and cacel.
submit is submit the form and cancel is hide the window.
My problem is if cursor in text field and click on cancel button first it call onblur event of the field.
it gives thies field is required.but i want to when ever click on cancel it hides the window instead of
field validation.
This is the code .the cursor is in email id1 text field and this field allow blank is false.then we are click on cancel then it displays this field is required but i want hide the window.