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)







Success is assured when a person fears the pain of regret more than the pain of the process.
-Orrin Woodward