开发者

Prevent to submit form while checking for Current Password?

开发者 https://www.devze.com 2023-01-09 05:01 出处:网络
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 $

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

0

精彩评论

暂无评论...
验证码 换一张
取 消