Through this question I found out here that there are downsides in extending DOM objects. Is it OK to do something like the following?
var tr = $('<tr>');
tr.myCustomProperty = 'Some string value';
I know that there is a .data()
method on jQuery, but the above seems easier to work with. I also wonder if my tr
variable is holding an actual tr DOM Element or any other kind of object.