Convert submit button to Onchange submit
Hi,
I have a script where I want to change the form submission from using a submit button to "auto" or onChange submit.
My script code is:[
Code:
{if $step==1}
<div class="form_content">
<form name="newad" method="post" oaction="newad.php?step=1">
<label>{""}<span class="mandatory"></span></label><br><br>
<select id="category" name="category">
<option value="">{$lng.listings.category}</option>
{foreach from=$categories item=v name=cat}
{if $v.parent==1}
<optgroup label="{$v.str}{$v.name}">
{else}
<option value="{$v.id}" {if $tmp.category==$v.id}selected="selected"{/if}>{$v.str}{$v.name|escape:"html"}</option>
{if ( $smarty.foreach.cat.index!=$categories|@count-1 && $v.parent_id!=$categories[$smarty.foreach.cat.iteration].parent_id) || ($smarty.foreach.cat.index==($categories|@count-1) && $v.parent_id!=0)}
</optgroup>
{/if}
{/if}
{/foreach}
</select>
<br/><br/>
<div class="buttons"><div class align="left">
<button type="submit" name="Choose_categ" class="positive">
{"Criar Anúncio"}
</button>
</div>
<div class="clearfix"></div>
</form>
</div>
</div> {* end form_container *}
{/if} {* end step1 *}
]
Can anyone help me LOOSE the submit button and make this work as onChange submit?
Thanx in advance!!!