Hi all,
how can I choose to use JavaScript (and if not available) use PHP in this example?
I have an HTML select control that has two onchange methods. The first one calls a JavaScript validation (getValues();) and the second calls for server validation (this.form.submi t();).
I only want the server validation (this.form.submi t();)
to occur if javascript is disabled. Else use JavaScript
Any advice please?
how can I choose to use JavaScript (and if not available) use PHP in this example?
I have an HTML select control that has two onchange methods. The first one calls a JavaScript validation (getValues();) and the second calls for server validation (this.form.submi t();).
Code:
<select id="selectID" name="selectName" onchange="[B]getValues[/B](); [B]this.form.submit[/B]()"> <option></option> <option></option> <option></option> </select>
to occur if javascript is disabled. Else use JavaScript
Any advice please?
Comment