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

Explanation:

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

Responses


 (Getemail alerts when others member replies)

More available Categories:








O Allah, You know me better than I know myself, and I know myself better than these people who praise me. Make me better than what they think of me, and forgive those sins of mine of which they have no knowledge, and do not hold me responsible for what they say.
-Abu Bakr al-Siddiq