How can I use jQuery to make an input readonly?

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

I have the following input:

  

How c

13条回答
  •  心在旅途
    2020-12-07 10:40

    In JQuery 1.12.1, my application uses code:

    $('"#raisepay_id"')[0].readOnly=true;

    $('"#raisepay_id"')[0].readOnly=false;

    and it works.

提交回复
热议问题