How do you clear controls without setting to empty string?

H

Horus Alkebulan

Maybe I'm overthinking this, but is there a cleaner way to clear out the
controls on a web form than just setting the text value to the empty string?

I'm implementing a "Save and Add Another" button, and for the new record I
need to, of course, clear out the existing data to present them a clean
form.

Thanks!

Horus
 
C

CMA

there is a "reset" type of button in html controls. put one in the page. u
can add the user and finally call to the click event of the reset button in
the page.
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top