代码如下:
//设置文本框和密码框得到焦点时的样式
$("#tblreg input[type=text],#tblreg input[type=password]").focus(function () {
$(this).addclass("myfocus");
}).blur(function () {
$(this).removeclass("myfocus");
});
注意中间用逗号隔开
您可能感兴趣的文章:
如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!
网友评论