设置input标签不可不可编辑

一. 问题背景 在某些表单,有些只想显示信息不想用户编辑信息,有些须要用户修改的,咱们怎么实现呢?html 二. 解决方案 2.1 用disabled <input type="text" disabled="disabled"> 设置了disabled属性,服务器将不会接收到该标签的值web 2.2 用readonly或readonly unselectable <input type="tex
相关文章
相关标签/搜索