Home>Article>Web Front-end> Detailed explanation of the selection method of jQuery in the selection box
The selection method of the select drop-down list is: $("slect option:eq(1)").attr("selected",true);//The selection method of the second option
chekbox :$("[value=check1"]:checkbox).attr("checked",true);
Radio selection method: $("[value=radio2"]:radio).attr(" checked",true);
The above are abbreviations, the important thing is to look at the code:
The above is the detailed content of Detailed explanation of the selection method of jQuery in the selection box. For more information, please follow other related articles on the PHP Chinese website!