Search code examples
javascriptjquerymember

How to assign custom property to jQuery object?


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?


Solution

  • .data()