I have this code
<Select>
<option value="-1">Select</option>
<option value="6">kasper </option>
<option value="13">adad </option>
<option value="14">3204 </option>
</select>
I am using this button to submit the selected choice of the user:
<input type="submit" name="pageaction" value="Select" />
When the user click on "Select"
it will display information corresponding to his select.
Can it be without the button?
Regards to all,
You can call function inside the select dropdown.
<select id="sel_id" name="sel_name" onchange="this.form.submit();">
<option value="-1">Select</option>
<option value="6">kasper </option>
<option value="13">adad </option>
<option value="14">3204 </option>
</select>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With