Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having textbox and submit and close button. There is jquery validation on focusout of textbox. Which is fine. But when user type something in textbox and directly click the Close button i don't want to do validation. As focusout event fired first so validation work. I want button click event to fire first.
Posted
Comments
JR009 13-Oct-14 7:28am    
try to validate textbox on click event of submit button, rather than textbox focusout event.
hemant malpote 13-Oct-14 8:32am    
validation is done by bootstrap automatically. i can't control it
Satya Ranjan Sahoo 13-Oct-14 12:14pm    
Why don't you disable that implicit bootstrap validation and provide validation on submit button explicitly.

1 solution

Check this fiddle[^]

Check this fiddle also using validator[^]
I have tried todo the above query without using focusout event. Please check else, respond back with your queries.
Thanks
:)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900