Monday, 13 February 2017

How to perform action on selection of two different select box option

<script>
 $(document).ready(function(){
    $('select').change(function(){
      if (($("#select1").val() == 'option1') && ($("#select2").val() == 'option2')){
        $("#div1").hide();
      } else {
        $("#div1").show();
      }
   });
 });
 </script>

No comments:

Post a Comment