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

Is it possible to use jquery to make ajax request? : jquery mobile

0 Answers  


Tell me how to select combobox select value and text using jquery?

0 Answers  


Where jquery mobile works? : jquery mobile

0 Answers  


What are the difference between alert() and confirm()?

0 Answers  


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

0 Answers  


How to debug jQuery?

0 Answers  


Tell me how do you stop the currently-running animation? : jquery mobile

0 Answers  


Explain jquery connect?

0 Answers  


How we can check if an element is empty or not using jquery?

0 Answers  


What is queue() in jquery? Use of queue() in jquery?

0 Answers  


Define each() function in jquery?

0 Answers  


Can you give me a brief history of your programming days? Where did it all start?

0 Answers  


Categories