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

Tell me does jquery 2.0 supports ie? : jquery mobile

733


How do you get the attribute of an html tag in jquery?

731


Define the use of each function in jquery?

763


What is the minimum setup needed to start using jquery.

842


What is the difference between "#" and "." selector in JQuery?

902


Need to add jQuery file in both Master and Content page?

767


Define cdn in jquery?

879


Difference Between Prop and Attr in jQuery?

819


Define jquery connect?

892


What is eq()? : jquery mobile

884


Why should I use jquery?

819


What is the use of serialize method in jQuery?

855


What are jquery selectors?

822


What are features of jquery or what can be done using jquery?

787


Mention some advantages of jquery.

831