17 ms·
Usually yes. The jQuery docs[0] go into why they refactored their .attr into separate .prop and .attr methods way back when in v1.6. There are also cases, such
by jbish 12y ago
Usually yes. The jQuery docs[0] go into why they refactored their .attr into separate .prop and .attr methods way back when in v1.6.
There are also cases, such as the value property, that will also update the value attribute.
[0] http://api.jquery.com/prop/ http://api.jquery.com/prop/