How to select an element using JQuery?

Options :
  1. $("#myDiv")
  2. element("myDiv")
  3. #("myDiv")
  4. select.element("myDiv")
Answer and Explanation :-

Answer: Option 1

Explanation:

You can use $("#myDiv") code to select an element using Query. In this code we select an element whose id is myDiv.

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

Previous Question : How to make control enabled using JQuery?

Next Question : How to add css class to a control using JQuery?

Click here for online test on JQuery

Responses


 (Getemail alerts when others member replies)

More available Categories:-








The things you do for yourself are gone when you are gone, but the things you do for others remain as your legacy.
-Kalu Ndukwe Kalu