How to disable/enable an input with jQuery? - Stack Overflow jQuery 1.6+ To change the disabled property...

Please Visit: http://ift.tt/1ajReyV



How to disable/enable an input with jQuery? - Stack Overflow

jQuery 1.6+

To change the disabled property you should use the (Link->http://ift.tt/1tKTafz) function.

$("input").prop('disabled', true);

$("input").prop('disabled', false);

jQuery 1.5 and below

The .prop() function doesn't exist, but (Link->http://ift.tt/1pfM6YA) does similar:

Set the disabled attribute.

$("input").attr('disabled','disabled');

To enable again

$("input").removeAttr('disabled');

http://ift.tt/1knglvK

http://ift.tt/1pfM96P



How to disable/enable an input with jQuery? - Stack Overflow







from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1pfM6YC

via LifeLong Community

No comments:

Post a Comment