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').?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between jquery-x.x.x.js and jquery.x.x.x min.js?

805


What are the slow selectors in jquery? : jquery mobile

859


Is jQuery is a replacement of JavaScript?

886


Explain the types of selectors in jquery?

848


Tell me what are the slow selectors in jquery? : jquery mobile

819


Difference between parent() and parents() in jQuery?

930


Name 3 available jquery plugins that bootstrap has in their query plugin library.

823


How to redirect to another page using jquery?

840


Explain the difference between body onload() and document.ready() function? : jquery mobile

894


Explain the basic need to start with jquery? : jquery mobile

829


How did you become the creator of jquery ui? Whats the story behind that?

1304


Does jquery 2.0 supports ie? : jquery mobile

850


What is the use of serialize method in jQuery?

959


Tell me which command will give a version of jquery?

817


Is vanilla js faster than jquery?

878