I’m pretty new to using jQuery and consequently I get along well enough to get the expected result but here’s a question regarding performance, to which I’m not sure about the answer:
Which of the following selector is the most performant, assuming that the expected selection actually is a <textarea>?
-
$("textarea[id='someID']"); -
$("#someID");
Thx in advance!
$("#someID");would be much fasterBecause it basically uses the standart javascript
document.getElementByIdfunction