Hacker News new | ask | show | jobs
by jbish 4318 days 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/