How to make control enabled using JQuery?

Options :
  1. attr(''disabled'', true);
  2. attr(''enabled'', true);
  3. attr(''enabled'', false);
  4. removeAttr(''disabled'');

Answer and Explanation :-

Answer: Option 4


By default all the control will be enabled. But if you would like to control enable you can use removeAttr('disabled') to make control enabled foe eg. $('#myControl').removeAttr('disabled');

How do you rate this queston?  Very Easy  Easy  Average  Above Average  Tough

Next Question : How to select an element using JQuery?

Click here for free online test on JQuery


 (Getemail alerts when others member replies)

More available Categories:

Last weekend a young man asked me how I remain so positive. "It seems all the negativity in the world doesn't affect you," he said. I had no more than a minute with the young man so I offered this: It's all about where you choose to put your attention, and I choose to be happy.
-Jason Mraz