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 the difference between bind() and live() function in jquery?

0 Answers  


Will Events Are Also Copied On Clone In Jquery?

0 Answers  


Is it possible to use other client side libraries like MooTools, Prototype along with jQuery?

1 Answers  


Can you please explain the difference between event.preventdefault and "return false"? : jquery mobile

0 Answers  


What's next on the hitlist with jquery ui?

0 Answers  


What is the difference between map and grep function in jquery?

0 Answers  


How we can select multiple elements in jquery?

0 Answers  


How can you get the type of arguments passed to a function?

0 Answers  


What is the starting point of code execution in jquery?

0 Answers  


Can you write a jquery code to select all links inside the paragraph?

0 Answers  


Which one is more efficient, document.getelementbyid( "idname") or $("#idname)?

0 Answers  


Write a basic jquery code?

0 Answers  


Categories