From auto submit

Cutthroat_Trout
Cutthroat_Trout used Ask the Experts™
on
I would like to remove the Submit button and just have the action go as soon as a user fills one of the radio buttons.

Form looks like this:
<form name="sort" action="colorado_crv_test.php" method="post">
                          <label for="Trim">CRV Trim Options</label>
                          <br>
                          <input type="radio" name="Trim" value="All" >
                          All <br>
                          <input type="radio" name="Trim" value="LX" >
                          LX <br>
                          <input type="radio" name="Trim" value="EX" >
                          EX <br>
                          <input type="radio" name="Trim" value="EX-L" >
                        EX-L</p>
                        <input name="Sort" type="submit" id="submit" value="Sort Inventory">
                      </form>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
in every radio button add
onclick="this.form.submit()"

Author

Commented:
Thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial