Re: reset select-tag only



google@xxxxxxxxxxxxxxx wrote:
> is it possible to reset a SELECT-Tag to it's default value but not
> reset all other form fields?

Yes. You need to loop through all the options, and check if each has
defaultSelected==true. If it does, select it.

Or, using my functions from http://www.mattkruse.com/javascript/validations/
you could just do:

var sel = document.forms["myform"].mySelectElement;
setInputValue(sel,getInputDefaultValue(sel));

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com


.



Relevant Pages

  • Re: ISE 10.1
    ... The ISE is looking for .ant file and pointing the errors in .ant file. ... OPTL: In std_logic; ... Reset: In std_logic; ... END LOOP CLOCK_LOOP; ...
    (comp.lang.vhdl)
  • Re: sum of array
    ... SEQ_LOOP is an infinite loop ... only when reset is asserted. ... variable somme: T_chiffre; ... DOULOS - Developing Design Know-how ...
    (comp.arch.fpga)
  • Re: [VB5) Faster way to read a text file?
    ... I can't ever imagine opening and/or closing ... Reset Statement Example ... FileNumber as both a string and a number. ... it's GOOD programming to end the loop when whatever ...
    (microsoft.public.vb.general.discussion)
  • Re: OHCI root_port_reset() deadly loop...
    ... it puts no limit on the loop and will only exit the loop when either ... The OHCI spec requires the controller to stop the reset itself. ...
    (Linux-Kernel)
  • Re: nesting problem
    ... Thanks so much for catching the reset! ... > 'initializes the workbook in the array ... > 'Sets the range that will be copied to the summary sheet ...
    (microsoft.public.excel.programming)