• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems in Form reset button

 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using a reset button inside a form. When my form is displayed it selects values of some of the comboboxes by default. Suppose if a country combo box is displayed then "USA" will be selected by default. Now when form is displayed then without doing anything I press reset button, it reset all the combo boxes from their default values. I don't want that. If user changes something and presses reset then it should display the default values that were selected before. This is the only case in Combo box if any text field contains any default value and i press reset without doing anything, it will retain its value and not become empty. But in case of combo box it changes I have also tried to use javascript's form.reset() method.

Kindly answer this ASAP.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then develop your own reset method that changes all of the values to what you want them to be.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic