Skip to content Skip to sidebar Skip to footer

Changing DIV Visibility Based On Select Box

I have a div that I want to show only if a certain value is selected from a drop down menu ( in this case , it is custom-css ) On the fiddle ( http://jsfiddle.net/obmerk99/8xnzh/1/

Solution 1:

You need to use the on function instead of just change to bind to dynamic elements.

$('body').on('change','#k99-custom-1',function(){
  //function here
});

Post a Comment for "Changing DIV Visibility Based On Select Box"