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 to do to select element having a particular class (".selected")? : jquery mobile

816


Different ways of using $.connect function in jquery?

886


How to read cookies in jquery?

805


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

713


Where jquery mobile works? : jquery mobile

791


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

830


Write a code for the implementation of a module pattern.

830


Tell me is jquery a library for client scripting or server scripting? : jquery mobile

763


Where can we download JQuery?

796


What is eq()? : jquery mobile

925


Explain the difference between find and children methods in jquery?

818


What are the the two types of cdns?

847


What are selectors in jquery?

872


How to set attributes of an element using jquery?

807


Is jquery is json library file or a javascript?

803