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 is the use of val() method in jquery?

824


How to concatenate two strings using jquery?

850


Differentiate between width() vs css(‘width’) in jquery

730


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

888


Explain various methods to make ajax request in jquery? : jquery mobile

771


What is the difference between onclick and onsubmit?

814


What are the browser related issues for jQuery?

756


How is body onload() function is different from document.ready() function used in jquery?

761


How method can be called inside code behind using jQuery?

801


What does the jQuery migrate function do?

815


How can jquery library be added to pages?

826


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

1191


How to programmatically trigger a click event thats being handled by jquery only?

776


Which sign is used as a shortcut for jQuery?

972


How to increase cursor size in html body using jquery?

717