jQuery select change show/hide div event
<script>
$(document).ready(function(){
$('#selectID').on('change', function() {
if ( this.value == 'red')
{
$("#divid").show();
}
else
{
$("#divid").hide();
}
});
});
</script>
Comments
Post a Comment