hi! Im having a problem retaining the inputs on my text fields. When i selected an option from a dropdown list with an onChange=locati on.. event. What happen is that, everytime I choose an option the page will reload then the inputs on my text field will disappear...
sample HTML:
<INPUT type="text" name="help_titl e" size="50">
<textarea cols="50" rows="15" name="help_cont ent"></textarea>
<select name="main_topi c" onChange="locat ion='help_add_f orm.php?help_id ='+this.options[this.selectedIn dex].value+'&help_s ub_id='">
<option value="option"> option1</option>
</select>
my question is, how can i retain the values on the input fields when an onchange event was triggered?
hope to hear from you guys! thanks!
sample HTML:
<INPUT type="text" name="help_titl e" size="50">
<textarea cols="50" rows="15" name="help_cont ent"></textarea>
<select name="main_topi c" onChange="locat ion='help_add_f orm.php?help_id ='+this.options[this.selectedIn dex].value+'&help_s ub_id='">
<option value="option"> option1</option>
</select>
my question is, how can i retain the values on the input fields when an onchange event was triggered?
hope to hear from you guys! thanks!
Comment