问题描述:
JQuery中怎么得到this中的某个元素?
$(document).ready(function() {
$("#a").click(function(){
$(this).css({"background-color":"#115996"});//把背景改色
//?
});
}
上面的代码怎样把把问号哪儿用this得到单选按钮,然后设置成选中状态
层是动态生成的...
$(document).ready(function() {
$("#a").click(function(){
$(this).css({"background-color":"#115996"});//把背景改色
//?
});
}
上面的代码怎样把把问号哪儿用this得到单选按钮,然后设置成选中状态
层是动态生成的...
问题解答:
我来补答展开全文阅读