Tuesday, March 6, 2012

Disable Input Type Text using JQuery

Hi Friends,

Here is how you do it..
Disable a text box which is given id as username.
$("input#username").attr('disabled','disabled');


Enable a text box which is given id as username.
$("input#username").removeAttr('disabled');


Cheers!!!
Ravi Kumar Gupta

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.