Jquery is a method that checks whether an input checked control is selected
- 2020-03-30 02:26:03
- OfStack
Jquery checks if the input checked control is checked
Js part
HTML part
Js part
function tongyianniu(){
var gouxuan=$('input[type=checkbox]').is(':checked');
alert(gouxuan);
}
HTML part
<input type="button" id="btnRegister" onclick="tongyianniu();" value=" test " />