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:-








My coffee gets increasingly better the more I drink and the closer I come to the bottom of the cup, where all the sugar is. I wonder if life is the same way as we approach the end.
-Jarod Kintz This Book Has No Title