jQuery获取当前点击的元素/*jQuery获取当前点击的元素*/
$('input').click(function(e){ e.val(1);});
/**/
jQuery input点击事件/*jQuery input点击事件*/
$("input").each(function(i,_i){
if($(_i).is(':checked')){
alert("选中");/*选中后执行*/
}else{
alert("未选中");
}
});
jQuery当前节点事件$('input').click(function(){
/*$(this) 当前节点内容*/
$(this).each(function(i,_i){
if($(_i).is(':checked')){
$(this).val('ON');/*当选中 设置值ON*/
}else{
$(this).val('OFF');/*选中取消 设置值OFF*/
}
});
});