Vaibhav Jain Vaibhav Jain - 3 months ago 9
HTML Question

Find if a textbox is disabled or not using jquery

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

Answer

.prop('disabled') will return a Boolean:

var isDisabled = $('textbox').prop('disabled');

Here's the fiddle: http://jsfiddle.net/unhjM/