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


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 free online test on JQuery


 (Getemail alerts when others member replies)

More available Categories:

At this rate, I'm still going to be aspiring by the time I'm expiring.
-Scott Cherney