Saturday, 24 August 2013

Previous Interview Question Next Interview Question
Home

Which is fast document.getElementByID('txtName') or $('#txtName').?

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.

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment