Answers

Question and Answer:

  Home  JQuery Programmer

⟩ 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.

 235 views

More Questions for you: