Gunnar: Eventhandler für select/option

Beitrag lesen

Moin, Moin,

So funzt es:

<form action="index.php" id="centralsystemform" name="centralsystemform" method="post">
  <fieldset id="sysform">
        <legend>Add/Edit centralsystems</legend>
  <label for="system">System:</label>
  <select name="system" id="system">
   <option value="nix">- please select -</option>
   <option value="3" >A12</option>
   .
   .
   .
  </select><br />
  <label for="problem">Problem:</label>

<select name="problem" id="problem" onChange="document.location.href='index.php?show=4&system='+document.centralsystemform.system.value+'&problem='+document.centralsystemform.problem.value+''">
   <option value="nix">- Please select -</option>

<option value="7">Application</option>
   .
   .
   .
  </select><br />
  <input type="submit" name="submit" value="Submit" class="submit">
  <input type="reset" name="reset" value="Reset" class="submit">
.
.
.
 </form>
</fieldset>

Hintergrund hierfür ist ich wollte nach Auswahl der beiden Selects den Rest des Formulars vorbelegen ohne das ein Submit-Button betätigt werden muss. Mir Radiobuttons und Checkboxen hatte ich das schon durch.

Danke jedenfalls

Gruss

Gunnar