• 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?


Well-known member
I have a very simple form:
<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>
    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
How would I set it up so that when a selection is made, it automatically submits?