[jQuery] Re: Resetting the reset button

2009-05-06 Thread russellneufeld
Rob, Thanks a ton. I was able to code up what I needed with your advice. Here's what I did, in case someone else out there needs to do something like this in the future. Russ /** * Set all the default values of a form to whatever is there now, effectively updating the reset * button t

[jQuery] Re: Resetting the reset button

2009-05-06 Thread RobG
On May 1, 1:49 am, russellneufeld wrote: > Hi all, > >   I've got a set of forms which all act the same way - the form submit > is handled by the jQuery form plugin which redirects the output to a > div on the page.  That means that when the user hits submit, the page > in the browser doesn't c

[jQuery] Re: Resetting the reset button

2009-05-05 Thread Steven Yang
i dont think you can do thatyou probably have to cache your state yourself i think reset uses the defaultValue attribute of the input and i think the attribute is readonly. correct me if i am wrong

[jQuery] Re: Resetting the reset button

2009-05-05 Thread russellneufeld
Hi all, Was hoping to hear an answer to this question, but perhaps I didn't explain it clearly enough. Is there a way to update a form such that a reset button restores to the new state? I'd like to make the reset button restore a form to a state which is newer than the one when the page was