How to use select

<select class="settlement">
<option value="1">------请选择------</option>
<option>Headquarters</option>
<option>Branch</option>

</select>


$(".settlement").val("1");

This method implements the default selection


.settlement is the class value of the value select tag, 1 refers to the value value of the option tag I want to select, to achieve the default selection

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326841867&siteId=291194637