Selection of Input[type="radio"] and Input[type="checkbox"]

Selection of Input[type="radio"] and Input[type="checkbox"]

1.1 Input[type="radio"] selected
        <input type="radio"> multiple radio buttons are used at the same time. To form the effect of only radio selection, the name value must be the same, and a selected box should be used checked attribute.
Note: It should be written as <input type="radio" checked > instead of checked="true".
1.2 The selection of Input[type="checkbox"]
        <input type="checkbox"> is a check box, which cannot form the effect of only single selection, even if the name value is the same. If you want to make it checked, use the checked attribute.

Guess you like

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