From auto submit

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>
Cutthroat_TroutAsked:
Who is Participating?
 
quincydudeConnect With a Mentor Commented:
in every radio button add
onclick="this.form.submit()"
0
 
Cutthroat_TroutAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.