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

What are the various ajax functions available in jquery ?

0 Answers  


What is jquery.length? : jquery mobile

0 Answers  


How to select combobox select value and text using jquery?

0 Answers  


List the advantages of jquery?

0 Answers  


What is a jquery ?

0 Answers  


Explain the use jquery.data method?

0 Answers  


Can you use multiple document.ready() function on the same page?

0 Answers  


Can you please explain the difference between body onload() and document.ready() function? : jquery mobile

0 Answers  


How to check if number is numeric while using jQuery 1.7+?

1 Answers  


What is the goal of cdn and what are the advantages of using cdn?

0 Answers  


Have any of your startup projects failed dismally - if so, why and how did you learn from them?

0 Answers  


What is normally not included in a cloned copy? : jQuery Mobile

0 Answers  


Categories