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...


Which is fast document.getElementByID('txtName') or $('#txtName').?



Which is fast document.getElementByID('txtName') or $('#txtName').?..

Answer / chaitanya

Native JavaScipt is always fast. jQuery method to select txtName "$('#txtName')" will internally makes a call to document.getElementByID('txtName'). As jQuery is written on top of JavaScript and it internally uses JavaScript only So JavaScript is always fast.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

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

0 Answers  


Tell me do I need to add the jquery file both at the master page and content page as well?

0 Answers  


What is jquery connect and how to use it?

0 Answers  


How can you add a jquery library in your project?

0 Answers  


Mention some advantages of jquery.

0 Answers  


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

0 Answers  


What is jQuery connect?

0 Answers  


Explain the difference between onload() and document.ready() function used in jquery?

0 Answers  


Explain the starting point of code execution in jquery? : jquery mobile

0 Answers  


Define animate function in jquery?

0 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  


How to use transition effects? : jQuery Mobile

0 Answers  


Categories