Resetting forms using an Image Button

Tutorials Shared by the Internet Community

Advertisements


Synopsis

In forms when using text boxes or text areas and check boxes you might need a reset button that is not the usual gray HTML button.

Statistics

  • Total Hits - 15859

  • Total Votes - 102 votes

  • Vote Up - 45 votes

  • Vote Down - 57 votes

  • Domain - www.smartwebby.com

  • Category - Java Script/Forms

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-14 02:49:51

Description

In forms when using text boxes or text areas and check boxes you might need a reset button that is not the usual gray HTML button. For this you can use a small JavaScript function as given below. Note: This button will reset only text boxes,text areas and check boxes as list boxes and option buttons don't usually require resetting. After resetting the form the cursor will set the focus to the first field in the form. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements