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 is a use of jquery filter?

0 Answers  


What happen if you return false from a jQuery event handler?

0 Answers  


What is .detach()? : jquery mobile

0 Answers  


What are the advantages of jQuery?

0 Answers  


Define all the ways to include jquery in a page?

0 Answers  


How jQuery selectors are executed?

1 Answers  


What is the difference between event.stopPropagation and event.stopImmediatePropagation?

1 Answers  


Need to add jQuery file in both Master and Content page?

0 Answers  


Explain the difference between .empty() and .remove() ?

0 Answers  


What is the difference between event.PreventDefault and event.stopPropagation?

1 Answers  


What are the types of selectors in jQuery?

0 Answers  


What does dollar sign ($) means in jQuery?

1 Answers  


Categories