Sounds like you're looking for the .data() method. See information on
the docs:
http://docs.jquery.com/Core/data#namevalue
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 19, 2009, at 4:06 AM, David wrote:
Hello everybody,
I have a little question about the developpement of a new JQuery
plugin.
(I hove it's the right place to ask ).
I understood how to add method to a jquery object but I don't find how
to had an "attribute" to this objet.
My goal is to have attributes attached to my object to retrieve
information after a second call on the same object.
For example :
$("#id").ofc("add", options);
and next :
$("#id").ofc("update");
When this update action is performed, I would like to retrieve the
object "options" from the precedent call but I don't know where
storing this option in my plugin.
I hove my question is understandable.
Thank You!