I've looked at countless examples on here and not sure what I'm doing wrong. I'm trying to change the form action based on the selected value from a dropdown menu.
Basically, the HTML looks like this:
- <form id="storetable" autocomplete="off" action="" method="post">
- <label>STORE:label>
- <input type="text" list="storeID" name="store" placeholder="Choose a store..." required>
- <datalist id="storeID">
- <option value="cwb_coins">Causeway Bayoption>
- <option value="wc_coins">Wan Chaioption>
- <option value="lck_coins">Lai Chi Kokoption>
- <option value="tp_coins">Tai Pooption>
- datalist>
- form
Gajendra JangidPosted Jul 1, 2019, 11:41 PM