JQuery to check if checkbox is checked

jQuery judges whether the checkbox is selected, three ways:

one: $("#").attr("checked")==true //selected state

Two : $("#").checked()=="checked "

Three: $("#").is(":checked")==true

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326530233&siteId=291194637