How to implement non-editable bootstrap input

藏色散人
Release: 2023-02-09 14:37:39
Original
3954 people have browsed it

How to implement non-editable bootstrap input: first open the corresponding code file; then set the disabled attribute for the input input box, with statements such as "placeholder="Disabled input here..." disabled".

How to implement non-editable bootstrap input

The operating environment of this tutorial: Windows 7 system, bootsrap version 3.3.7, Dell G3 computer.

bootstrap input is not editable

In Bootstrap, setting the disabled attribute for the input input box can prohibit any interaction with the user (focus, input, etc.). Disabled input boxes are lighter in color, and a not-allowed mouse state has been added.

Copy after login

Rendering:

How to implement non-editable bootstrap input

disabled attribute

The disabled attribute is a Boolean attribute.

The disabled attribute specifies whichelements should be disabled.

Disabled input elements are unusable and unclickable.

disabled attribute is set so that users can use theelement only when certain conditions are met (such as checking a check box, etc.). You can then use JavaScript to remove the disabled value, making theelement available.

Tip: Disabledelements in the form will not be submitted.

Note: The disabled attribute does not apply to.

Recommended: "bootstrap video tutorial" "css video tutorial"

The above is the detailed content of How to implement non-editable bootstrap input. For more information, please follow other related articles on 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
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!