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 do you get the attribute of an html tag in jquery?

0 Answers  


What are the features of jquery used in web applications?

0 Answers  


What is the use of noconflict() method in jquery?

0 Answers  


How to select combobox select value and text using jquery?

0 Answers  


What are selectors in jquery?

0 Answers  


How to use connect in jquery?

0 Answers  


What are the selectors in jquery? How many types of selectors in jquery?

0 Answers  


Jquery can be used in what scenarios?

0 Answers  


Tell me how to use migrate jquery plugin if possible? : jquery mobile

0 Answers  


What is the use of queue() in jquery?

0 Answers  


​ What is difference between prop and attr?

1 Answers  


Is jquery still relevant 2019?

0 Answers  


Categories