Reset Action Form

  • Thread starter Thread starter Stan Sainte-Rose
  • Start date Start date
S

Stan Sainte-Rose

Hi,

How to Reset a Form with its initial values ?
I use a LinkButton and I flag a javascript variable (updated) when a textbox
is updated
I would like to reset the form when the user says Yes to the Cancel Question

MyLinkButton.Attributes.Add("onClick", "if (updated==1){return
confirm('Cancel ?')}")

Any help ?

Stan
 
Call document.forms[0].reset();


Hi,

How to Reset a Form with its initial values ?
I use a LinkButton and I flag a javascript variable (updated) when a textbox
is updated
I would like to reset the form when the user says Yes to the Cancel Question

MyLinkButton.Attributes.Add("onClick", "if (updated==1){return
confirm('Cancel ?')}")

Any help ?

Stan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top