views:

127

answers:

1

I need to assign a custom property to a jQuery object. Here is the object:

var object = $("<div id='item'></div>");

I need object to have a custom data member. How can I add this?

+5  A: 

.data()

Matt
Thanks - worked perfectly. Simple answer to a simple question :)
George Edison