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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between $(this) and 'this' in jquery?

798


What is the script build up by jQuery?

838


Difference between event.PreventDefault and event.stopPropagation?

819


What does the jQuery migrate function do?

805


Can you please explain the difference between parent() and parents() methods in jquery? : jquery mobile

704


What are the advantage of using cdn? : jquery mobile

786


Difference between find() and closest() in jquery?

785


What is the difference between find and children methods?

807


What is the difference between jquery and javascript?

815


How to control page titles in jquery mobile? : jquery mobile

720


Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?

740


How to disable cut,copy and paste in TextBox using jQuery?

893


What the use of $ symbol in jquery.

753


Explain the concepts of "$ function" in jquery with an example?

799


How can you use array with jquery?

784