disable/enable an element in jquery?

disable/enable an element in jquery?

Postby tomrff » Thu Apr 28, 2011 1:47 pm

disable/enable an element in jquery?


you can disable/enable web element using attr and removeAttr functions respectively

// Disable #x
$(“#x”).attr(“disabled”,”disabled”);
// Enable #x
$(“#x”).removeAttr(“disabled”);
tomrff
 
Posts: 33
Joined: Sat Jan 08, 2011 10:12 pm

Return to JQuery

Who is online

Users browsing this forum: No registered users and 2 guests

cron