With the new version of jQuery v1.6 and the addition of the .prop() method.
Is there an inherent difference in using .prop() over .data() ?
In the documentation, I see that not deleting a property can lead to memory leaks in versions of IE prior to IE9. But are there any other performance issues or other issues using the new prop() method?
Syntax from the site:
var $para = $("p"); $para.prop("luggageCode", 1234);
Further:
var $para = $("p"); $para.data("luggageCode", 1234);
jquery
Mike fielden
source share