[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

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>
0
Cutthroat_Trout
Asked:
Cutthroat_Trout
1 Solution
 
quincydudeCommented:
in every radio button add
onclick="this.form.submit()"
0
 
Cutthroat_TroutAuthor Commented:
Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now