I want to open openVit () and openVilla () when the select option is pressed.
<select>
<option href='javascript:;' onchange="abrirVit();" value="canto">Vitória - Praia do Canto</option>
<option href='javascript:;' onchange="abrirVelha();" value="velha">Vila Velha</option>
</select>
SCRIPT:
<script type="text/javascript">
$(function(){
function abrirVit(){
$("#backForm").css("display","block").stop().animate({"opacity":"1"},200);
setTimeout(function(){
$("#formContact").css("display","block").stop().animate({"opacity":"1"},200);
},150);
};
</script>
<script type="text/javascript">
$(function(){
function abrirVelha(){
$("#backForm").css("display","block").stop().animate({"opacity":"1"},200);
setTimeout(function(){
$("#formContact").css("display","block").stop().animate({"opacity":"1"},200);
},150);
};
</script>