• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Automatically submit form on "select" selection?

Jaxel

Well-known member
#1
I have a very simple form:
Code:
<form action="{xen:link 'reports/mads/edit', $report}" method="post" class="xenForm AutoValidator">
    <select name="mad_status" id="ctrl_status" class="textCtrl autoSize">
        <option value="">({xen:phrase unspecified})</option>
        <option value="allow" {xen:selected "{$report.mad_status} == 'allow'"}>{xen:phrase allow}</option>
        <option value="deny" {xen:selected "{$report.mad_status} == 'deny'"}>{xen:phrase reject}</option>
    </select>
    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
</form>
How would I set it up so that when a selection is made, it automatically submits?