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

What are the features of jQuery, has been used in web applications?

769


Define width() vs css('width')?

724


What is the difference between settimeout() and setinterval() methods?

819


How to use migrate jquery plugin if possible? : jquery mobile

763


Explain "beforesend(xhr)" paremeter of jquery ajax method?

663


How to add and remove css classes to an element using ?

777


Explain the concepts of "$ function" in jquery with an example?

794


Why jQuery is needed?

800


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

732


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

863


Why should I use jquery?

778


Explain is jquery replacement of java script? : jquery mobile

743


Change the url for a hyperlink using jquery?

840


How to multiple version of jQuery?

801


What is jquery selectors?

898