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

May 16, 2016 pm 04:37 PM
select read only

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");

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to modify the Linux fstab file to cancel the read-only attribute How to modify the Linux fstab file to cancel the read-only attribute Jan 15, 2024 pm 05:57 PM

How to modify the Linux fstab file to cancel the read-only attribute

Practical Guide: Implementing table-level read-only permissions in Oracle Practical Guide: Implementing table-level read-only permissions in Oracle Mar 06, 2024 pm 05:09 PM

Practical Guide: Implementing table-level read-only permissions in Oracle

Asynchronous processing method of Select Channels Go concurrent programming using golang Asynchronous processing method of Select Channels Go concurrent programming using golang Sep 28, 2023 pm 05:27 PM

Asynchronous processing method of Select Channels Go concurrent programming using golang

How to hide the select element in jquery How to hide the select element in jquery Aug 15, 2023 pm 01:56 PM

How to hide the select element in jquery

How to set the disk as read-only with the partition tool diskgenius - How to set the disk as read-only with diskgenius How to set the disk as read-only with the partition tool diskgenius - How to set the disk as read-only with diskgenius Mar 04, 2024 pm 03:00 PM

How to set the disk as read-only with the partition tool diskgenius - How to set the disk as read-only with diskgenius

How to implement change event binding of select elements in jQuery How to implement change event binding of select elements in jQuery Feb 23, 2024 pm 01:12 PM

How to implement change event binding of select elements in jQuery

What is the reason why Linux uses select? What is the reason why Linux uses select? May 19, 2023 pm 03:07 PM

What is the reason why Linux uses select?

How to use the select syntax of mysql How to use the select syntax of mysql Jun 01, 2023 pm 07:37 PM

How to use the select syntax of mysql

See all articles