Home > Web Front-end > HTML Tutorial > Set select to be read-only and not editable and the value of select to be transferable

Set select to be read-only and not editable and the value of select to be transferable

高洛峰
Release: 2017-03-01 14:45:59
Original
2640 people have browsed it

When the attribute is set to disabled, the value of select cannot be passed when submitting the form. Just remove the disabled attribute before submitting. 1.

This seems more direct, Intuitively, it feels like it is read-only, and you cannot click or pull down. The words inside will also turn gray

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

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

More settings select is read-only, not editable and the value of select Please pay attention to the PHP Chinese website for relevant articles that can be delivered!

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