Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在用户界面的文本框中显示一些值。我必须禁用文本框值的更改,即当用户尝试更改或删除该值时。如何使用 jquery 做到这一点?
为什么要用jquery??这会起作用: <input type="text" value="your value" disabled="disabled" />
<input type="text" value="your value" disabled="disabled" />