Html Select option How to make the default selection

Html Select option How to make the default selection
Adding the attribute selected = "selected" to an option makes it the default option.

like:

Copy code
The code is as follows:

<select id="isAudit" name="isAudit">
<option value="2">All</option>
<option value="1" selected = "selected">Pass</option>
<option value="0">Failed</option>
</select>

"Pass" is selected by default.

<<:  Detailed explanation of data sharing between Vue components

>>:  How to use stored procedures in MySQL to quickly generate 1 million records

Recommend

CSS to achieve floating customer service effect

<div class="sideBar"> <div>...

Web page image optimization tools and usage tips sharing

As a basic element of a web page, images are one ...

Hadoop 3.1.1 Fully Distributed Installation Guide under CentOS 6.8 (Recommended)

Foregoing: This document is based on the assumpti...

How to use CSS media query aspect-ratio less

CSS media query has a very convenient aspect rati...

Details after setting the iframe's src to about:blank

After setting the iframe's src to 'about:b...

React implements import and export of Excel files

Table of contents Presentation Layer Business Lay...

Method for realizing Internet interconnection by VMware virtual machine bridging

After installing VMware and creating a new virtua...

Docker network mode and configuration method

1. Docker Network Mode When docker run creates a ...

CSS code to control the background color of the web page

I think everyone often worries about finding pict...

Zabbix implements monitoring of multiple mysql processes

Three MySQL instance processes are started on one...

MySQL triggers: creating multiple triggers operation example analysis

This article uses an example to describe the crea...

HTML code example: detailed explanation of hyperlinks

Hyperlinks are the most frequently used HTML elem...

How to implement multiple parameters in el-dropdown in ElementUI

Recently, due to the increase in buttons in the b...

Vue3.0 project construction and usage process

Table of contents 1. Project construction 2: Dire...