Find if a textbox is disabled or not using jquery

后端 未结 5 1590
情书的邮戳
情书的邮戳 2020-12-23 14:06

I need to find if a textbox is disabled or enabled using Jquery.

5条回答
  •  暖寄归人
    2020-12-23 14:45

    You can use $(":disabled") to select all disabled items in the current context.

    To determine whether a single item is disabled you can use $("#textbox1").is(":disabled").

提交回复
热议问题