在表单提交中,设置input不可编辑,但是可以向后台传输数据,的设置方法: $('#input').attr("readonly",true); ...
html: lt Input name a v model formValidate.coName placeholder 请输入姓名 v bind:disabled diasabledInput gt lt Input gt script: lt script gt export default data return diasabledInput:false, , methods: handl ...
2019-10-04 10:49 0 3720 推荐指数:
在表单提交中,设置input不可编辑,但是可以向后台传输数据,的设置方法: $('#input').attr("readonly",true); ...
不可编辑: 如果仅仅用于禁止输入(只读,但有用),使用readonly属性 让textarea没有黄框且不能拖拽: 高度自适应: ...
背景:申请单里需要选费用类型,费用类型有的有子明细项,有个合计项 当有子明细项的时候,合计项的值是通过弹出的子明细项价格的总和(设置为可编辑没问题,因为点击出来弹框,编辑不了) 没有子明细项的时候,合计项直接手填 当费用类型没有选择的时候,合计项设置为不可编辑状态 ...
我用最笨的方法,先实现功能先,用两个input,一个可以编辑,一个不可以编辑,失去焦点后隐藏可以点击的那个,点“编辑”时,显示可以编辑的那个input 编辑 ...
直接上代码 ...
disabled="true "此果文字会变成灰色,不可编辑。readOnly="true" 文字不会变色,也是不可编辑的 ...
1.开启disabled,是input不可以编辑 $("#id").attr("disabled","disabled"); 2.关闭disabled $("#id").removeAttr("disabled"); 普通js中是这样写 ...
<input name="ly_qq" type="text" tabindex="2" onMouseOver="this.className='input_1'" onMouseOut="this.className='input_2'" value="123456789 ...