开发者

hide drop down field when specific email (@abc.com or @xyz.com) is inputted

开发者 https://www.devze.com 2023-03-05 02:21 出处:网络
I\'m building a registration form and I need to h开发者_如何学编程ide a drop down field when a specific email is inputted.So when a user with email id of john*@abc.com* is added the drop will disappea

I'm building a registration form and I need to h开发者_如何学编程ide a drop down field when a specific email is inputted. So when a user with email id of john*@abc.com* is added the drop will disappear. I hope this makes sense. Thanks.


$("#email").keyup(function(){
    $("#dropdown").toggle($(this).val() != "john*@abc.com");    
});

http://jsfiddle.net/hunter/hnRxm/

0

精彩评论

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