开发者

Grouping jquery slectors

Is there a way to group jquery 开发者_JAVA百科selectors together?

$(':text, #password').keypress(function() {


Your answer should work as it is written, below are some addition links regarding combining jQuery selectors:

Multiple Selection - jQuery

StackOverflow - Combining two jQuery Selectors


If I got it right I guess it's

$(':text#password').keypress(function() { alert("hello"); });
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜