2 ms·
The difference between attributes and properties is not an inane detail. It's fundamental, and if you don't understand it then you can't work reliably with the
by timdown 15y ago
The difference between attributes and properties is not an inane detail. It's fundamental, and if you don't understand it then you can't work reliably with the DOM, either with or without jQuery.
Bottom line: use prop().