Home > Article > Web Front-end > jquery judgment code for the checked attribute of the input tag in html_jquery
Although there will be such errors, if you test it carefully, you will find that when the input type attribute is set to button, it still has the checked attribute, and the default is false. The code is as follows: