Home > Web Front-end > HTML Tutorial > How to set select to be read-only and not editable and the value of select to be transferable_HTML/Xhtml_Web page production

How to set select to be read-only and not editable and the value of select to be transferable_HTML/Xhtml_Web page production

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:37:08
Original
1544 people have browsed it

1.

This seems more direct, and intuitively it has a read-only feel, and cannot be clicked or pulled down. The words inside will also turn gray

When the attribute is set to "disabled", the value of the select cannot be passed when submitting the form. Remove the disabled attribute before submitting $("#role").removeAttr(" disabled");

jquery add attribute $("#role").attr("disabled","disabled");

Related labels:
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
Latest Issues
AngularJS Select default value?
From 1970-01-01 08:00:00
0
0
0
Select option using PHP loop
From 1970-01-01 08:00:00
0
0
0
Chrome doesn't apply padding to select options
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template