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 are the effects methods used in jquery?

845


Define data paremeter of jquery ajax method?

806


What is queue() in jquery?

878


Explain .delegate()? : jquery mobile

819


How to give face effect in jquery?

820


What is the script build up by jQuery?

898


How to call a method inside code-behind using jquery?

797


How to check/uncheck an input in jquery?

873


What is the slowest selector in jQuery?

1088


Differentiate between jquery.size and jquery.length? : jQuery Mobile

849


What are the various ajax functions?

829


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

845


Can you please explain the difference between .js and .min.js? : jquery mobile

749


What are the features of jQuery, has been used in web applications?

834


Explain .on()? : jquery mobile

821