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

How to add or remove classes to an element in jquery?

0 Answers  


What is the use of toggle() method in jquery?

0 Answers  


How to execute jQuery code after the DOM is ready?

0 Answers  


Is it possible to use our own specific character in the place of $ sign in jquery? : jquery mobile

0 Answers  


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

0 Answers  


Why we need jquery mobile? : jquery mobile

0 Answers  


Explain the difference between .js and .min.js?

0 Answers  


Can you please explain the difference between body onload() and document.ready() function? : jquery mobile

0 Answers  


How to check if number is numeric while using jquery 1.7+? : jquery mobile

0 Answers  


What is serialize() in jquery?

0 Answers  


What is chaining in jQuery?

1 Answers  


What is the difference between jquery-x.x.x.js and jquery.x.x.x min.js?

0 Answers  


Categories