Executar evento JQuery ao Carregar Página

<select id="select_machos_femeas" name="select_machos_femeas">
<option value="#">Selecione</option>
<option value="Macho">Machos</option>
<option value="Femea">Fêmeas</option>
</select>
<script> 
$(function () { 
 $("#select_machos_femeas").val('Macho').trigger("change"); });
</script>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s