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

How can related code be encapsulated?

0 Answers  


Can you include multiple version of jQuery? If yes, then how they are executed?

1 Answers  


How do you attach a event to element which should be executed only once?

1 Answers  


How to check data type of any variable in jQuery?

1 Answers   Infoica Tech,


In what situation you would use multiple version of jQuery and how would you include them?

1 Answers  


Explain width() vs css(‘width’)?

0 Answers  


How jQuery selectors are executed?

1 Answers  


What is .detach()? : jquery mobile

0 Answers  


How we can hide a block of html code on a button click using jquery?

0 Answers  


Is it possible to hold or delay document.ready execution for sometime?

1 Answers  


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?

0 Answers  


Is jquery a library for client scripting or server scripting? : jquery mobile

0 Answers  


Categories