I use CGI::Ajax to check password on blur event of Password textbox field and disabled the submit button开发者_如何学Go (by defualt submit button is active) if current password is wrong using jquery $('#submit_btn').attr('disabled');
It's working fine for me.
But when user enter wrong password and click on Submit button directly without using tab key. It's not disabled the submit sometimes..
So Pls give any idea to solve this problem..
Thnx in advance...
Check the password when "onclick" event on the submit button.
do not disable your button when password is wrong, but enable it if password is ok. ie : default button state is disable. Becomes active if password field is ok
精彩评论