Home > DeveloperSection > Interviews > disable/enable an element in jquery?

Posted on    September-08-2012 1:10 AM

 JQuery JQuery 
Ratings:
 1 Answer(s)
  1943  View(s)
Rate this:

AVADHESH PATEL

Total Post:257

Points:1285
Posted on    September-08-2012 12:00 AM

// Disable #x
    $(“#x”).attr(“disabled”,”disabled”);
    // Enable #x
    $(“#x”).removeAttr(“disabled”);

Don't want to miss updates? Please click the below button!

Follow MindStick