[jQuery] Re: Best way to add attributes/extend element

2009-08-13 Thread James
Here's a link to the documentation on data(). http://docs.jquery.com/Core/data On Aug 13, 6:50 am, Brett Ritter wrote: > On Thu, Aug 13, 2009 at 12:44 PM, twooton wrote: > > When  you need for a certain element (say a text input box) to > > remember some data, what is the best way to do this? Ca

[jQuery] Re: Best way to add attributes/extend element

2009-08-13 Thread Brett Ritter
On Thu, Aug 13, 2009 at 12:44 PM, twooton wrote: > When  you need for a certain element (say a text input box) to > remember some data, what is the best way to do this? Can you extend > the input box object with jquery? Right now i've been storing it in > the rel tag $('#testInput').attr('rel','ex