Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of not editing jquery controls

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to solve the problem of non-editing of jquery controls". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem of non-editing of jquery controls".

Jquery control does not edit the solution: 1, through "$(" # id "). Attr (" disabled "," disabled ");" open disabled;2, through "$(" # id "). RemoveAttr (" disabled "); close disabled.

This article operating environment: windows7 system, jquery3.2.1 version, DELL G3 computer

What if the jquery control is not edited?

JQuery control input is not editable

1. Enable disabled. Input cannot be edited.

("# id") .attr ("disabled", "disabled")

two。 Close disabled

$("# id") .removeAttr ("disabled")

It is written in ordinary js, document.getElementById ("id"). Disabled = false

Erroneous writing:

$("# id"). Attr ("disabled", "false"); thank you for reading, the above is "how to solve the jquery control does not edit the problem" of the content, after the study of this article, I believe that how to solve the jquery control does not edit the problem of this problem has a deeper understanding, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report