Home > Article > Web Front-end > Checkbox operations include selected, unselected and judgment codes_jquery
checkbox:
$("#chk1").attr("checked",'');//Unchecked
$("#chk2").attr("checked" ,true);//Tick
if($("#chk1").attr('checked')==undefined) //Determine whether it has been checked