How can I use jQuery to make an input readonly?

后端 未结 13 2185
挽巷
挽巷 2020-12-07 09:54

I have the following input:

  

How c

13条回答
  •  庸人自扰
    2020-12-07 10:50

    Perhaps it's meaningful to also add that

    $('#fieldName').prop('readonly',false);
    

    can be used as a toggle option..

提交回复
热议问题