开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜