checkbox唯一選取;checkbox互斥
function toChangeCheckBox(value){
$("input[name='work_area']").each(function(index){
if(index == value){
$(this).removeAttr("checked").attr("checked","checked");
}else{
$(this).removeAttr("checked");
}
});
}
function chooseOne(i){
$('input[name="member_is"]').each(function(index){
if(i == index){
$(this).attr("checked", true);
}else{
$(this).attr("checked", false);
}
});
}
沒有留言:
張貼留言