I can't figure out how to reset input fields that appear on a dialog box, after they've been submitted once already. Basically the jist of the problem is this:
I have a button on a page that triggers a dialog box. The dialog box contains 3 input fields and submit button. I fill in data and submit the form. That submit button triggers an ajax call. Upon success, it closes the dialog box and displays a message (another dialog box).
Now, if I open the dialog box again, fill in the fields and submit, it submits the old information which I filled in the first time I opened the dialog box.
I created an example here: http://www.thekirchners.net/dialog/
All code is in the page, just view the source of it.
Thanks all.