html option disable select select disable option introduction

高洛峰
Release: 2017-03-04 15:28:17
Original
1403 people have browsed it

If you don’t want users to choose, you can disable the html option and disable the select option. The following is the specific implementation. I hope it will be helpful to everyone.

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>
Copy after login


html option禁用选择select禁用选项介绍

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

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>
Copy after login


html option禁用选择select禁用选项介绍
For more html option disabled selection select disabled option introduction related articles please pay attention to the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!