Latest Post

jQuery select change show/hide div event

jQuery select change show/hide div event

jQuery select change show/hide div event


You are create a form when the select element 'parcel' is selected it will show and hide a div.

<?php

jQuery('#player_sport_1').hide();
jQuery('#sport_name').change(function(){
if(jQuery('#sport_name').val() == '120') {
jQuery('#player_sport_1').show();
} else {
jQuery('#player_sport_1').hide();
}
});

?>

Use following JQuery. Demo

No comments