html option disable select select disable option example

html option disable select select disable option example

Copy code
The code is as follows:

<select>
<option value="">1</option>
<option value="">2</option>
<option value="">3</option>
<option value="">4</option>
<option value="">5</option>
</select>



I don't want users to be able to choose 345. What should I do?

Copy code
The code is as follows:

<select>
<option value="">1</option>
<option value="">2</option>
<optgroup label="3"></optgroup>
<optgroup label="4"></optgroup>
<optgroup label="5"></optgroup>
</select>



That's it.

<<:  MySQL configuration master-slave server (one master and multiple slaves)

>>:  Why is the scroll bar on the web page set on the right?

Recommend

How to quickly build your own server detailed tutorial (Java environment)

1. Purchase of Server 1. I chose Alibaba Cloud...

Sharing experience on the priority of CSS style loading

During the project development yesterday, I encoun...

Solution to multiple 302 responses in nginx proxy (nginx Follow 302)

Proxying multiple 302s with proxy_intercept_error...

JavaScript imitates Taobao magnifying glass effect

This article shares the specific code for JavaScr...

Using streaming queries in MySQL to avoid data OOM

Table of contents 1. Introduction 2. JDBC impleme...

Summary of learning Docker commands in one article

Table of contents Introduction Mirror repository ...

Understanding and using callback functions in JavaScript

Table of contents Overview What are callbacks or ...

Use simple jQuery + CSS to create a custom a tag title tooltip

Introduction Use simple jQuery+CSS to create a cus...

Example of creating table statements for user Scott in MySQL version of Oracle

Overview: Oracle scott user has four tables, whic...

vue+springboot realizes login function

This article example shares the specific code of ...

What is this in JavaScript point by point series

Understand this Perhaps you have seen this in oth...

JavaScript to implement the countdown for sending SMS

This article shares the specific code of JavaScri...

Function overloading in TypeScript

Table of contents 1. Function signature 2. Functi...

Basic implementation method of cross-component binding using v-model in Vue

Hello everyone, today we will talk about how to u...

Docker implements re-tagging and deleting the image of the original tag

The docker image id is unique and can physically ...