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

Explain jquery.noconflict? : jquery mobile

0 Answers  


What is the difference between .empty(), .remove() and .detach() methods in jQuery?

1 Answers  


Differentiate the concepts of .js and .min.js?

0 Answers  


What is jQuery connect?

0 Answers  


How can you select all elements in a page using jquery?

0 Answers  


What is the use of jQuery filter?

0 Answers  


How to always reference latest version of jquery?

0 Answers  


How do you get the text value of a selected option?

0 Answers  


How do you check if an element is empty?

1 Answers  


Can we call C# code behind using jQuery?

0 Answers  


What is the struts2 jquery plugin and its advantages.

0 Answers  


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

0 Answers  


Categories