原文:input不可編輯且顏色不變

disabled true 此果文字會變成灰色,不可編輯。readOnly true 文字不會變色,也是不可編輯的 ...

2018-03-27 14:19 0 1460 推薦指數:

查看詳情

jQuery控制input不可編輯

1.開啟disabled,是input不可編輯   $("#id").attr("disabled","disabled"); 2.關閉disabled   $("#id").removeAttr("disabled"); 普通js中是這樣寫 ...

Thu Nov 05 02:41:00 CST 2015 0 27448
input變成不可編輯狀態的方法

<input name="ly_qq" type="text" tabindex="2" onMouseOver="this.className='input_1'" onMouseOut="this.className='input_2'" value="123456789 ...

Mon Mar 27 19:24:00 CST 2017 0 1657
vue設置input不可編輯切換

html: <Input name="a" v-model="formValidate.coName" placeholder="請輸入姓名" v-bind:disabled="diasabledInput"></Input ...

Fri Oct 04 18:49:00 CST 2019 0 3720
js input 不可編輯可傳值設置

在表單提交中,設置input不可編輯,但是可以向后台傳輸數據,的設置方法: $('#input').attr("readonly",true); ...

Sat Jul 28 19:47:00 CST 2018 2 8227
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM