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

What is the difference between the id selector and class selector in jquery?

855


Difference Between Prop and Attr in jQuery?

868


What is jquery connect and how to use it?

961


What is a cdn? : jQuery Mobile

888


Explain the script build up by jquery?

9364


What is a jquery ?

859


And finally, if you could give one tip to any new budding jquery ui developers, what would it be?

1018


Can jquery be used to make an ajax request?

856


Whether our own specific characters are used in place of $ in jQuery?

812


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

906


Explain the difference between body onload() and document.ready() function? : jquery mobile

887


What is the starting point of code execution in jquery?

811


How to redirect to another page using jquery?

835


How to find grand children in of an element?

857


How can we apply css in div using jquery?

951