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

More available Categories:-

Responses


 (Getemail alerts when others member replies)







Peace is present right here and now, in ourselves and in everything we do and see. Every breath we take, every step we take, can be filled with peace, joy, and serenity. The question is whether or not we are in touch with it. We need only to be awake, alive in the present moment.
-Thích Nh?t H?nh Peace Is Every Step: The Path of Mindfulness in Everyday Life