Hi,
I have a dropdown form used for filtering products in couchcart.
The form is displayed on site using
Followed by a submit button.
How can I add javascript like
to the dropdown to make it automatically filter on selection of an option and removing the need to have a submit button?
Many thanks
I have a dropdown form used for filtering products in couchcart.
The form is displayed on site using
- Code: Select all
<cms:input
type="dropdown"
opt_values='No Preference=- | Option1=1 | Option2=2'
opt_selected='-'
name="option"
/>
Followed by a submit button.
How can I add javascript like
- Code: Select all
<select onchange="this.form.submit()">
...
</select>
to the dropdown to make it automatically filter on selection of an option and removing the need to have a submit button?
Many thanks