Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you select element by ID in jQuery?



How do you select element by ID in jQuery?..

Answer / chaitanya

To select element use ID selector. We need to prefix the id with "#" (hash symbol). For example, to select element with ID "txtName", then syntax would be,

Hide Copy Code

$('#txtName')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Why content injected into a page is not enhanced? : jquery mobile

0 Answers  


What are the the two types of cdns?

0 Answers  


How to read, write and delete cookies in jquery?

0 Answers  


How to resolve conflicts with other libraries?

0 Answers  


How We Can Write Code Specific To Browser In Jquery?

0 Answers  


What is the use of noconflict() method in jquery?

0 Answers  


What is event.stoppropagation? : jquery mobile

0 Answers  


What is queue() in jquery? Use of queue() in jquery?

0 Answers  


Whether jQuery HTML work for both HTML and XML documents?

0 Answers  


Which are the popular jQuery CDN? and what is the advantage of using CDN?

1 Answers  


How do you select all elements with the class of “selected” in jquery?

0 Answers  


Explain the difference between .empty() and .remove() ?

0 Answers  


Categories