Created
February 29, 2016 23:41
-
-
Save pizzimenti/57ec2db322d88b6346a2 to your computer and use it in GitHub Desktop.
Select form that autosubmits on change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form action="/" method="post"> | |
| <div class="form-group"> | |
| <select id="stylist" name="stylist" class="form-control" type="text" onchange="this.form.submit();"> | |
| <option selected="true" disabled="disabled">Choose a Stylist</option> | |
| #foreach($stylist in $stylists) | |
| <option value="$stylist.getID()">$stylist.getName()</option> | |
| #end | |
| </select> | |
| </div> | |
| </form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment