How to make default selection for HTML select option

Time:2020-2-17

Adding the selected = Selected attribute to an option is the default option

Such as:

Copy code

The code is as follows:

<select name=”isAudit”>
< option value = “2” > all < / option >
< option value = “1” selected = “selected” > via < / option >
< option value = “0” > failed < / option >
</select>

Pass is selected by default.

Recommended Today

The application of USB camera in rk3399

The application of USB camera in rk3399 1, introduction UVCFull nameUSB Video Class, is a set of standard customized by usb-if. All USB interface cameras complying with this standard can almost be used directly under Windows Linux and other systems, achieving the similar effect of drive free. Of course, it doesn’t mean that there is […]