3 ms·
I'm not quite sure I see why you would use element.prop('property', value); instead of element.property = value;
by glenjamin 15y ago
I'm not quite sure I see why you would use
element.prop('property', value);
instead of
element.property = value;
- jeresig 15y agoYou probably wouldn't, it's just a convenience method (and patches over some of the cross-browser inconsistencies and naming-convention weirdness).