How can I make statements inside a div invisible on page load using jQuery?

On page load, I need to make it divGrid

invisible where the div contains the Grid. On the same page, there is another subdivision: divdropdown

that contains a drop-down menu of all site names.

So when changing the value in the dropdown I need to display divGrid

<div>

.

How is this achieved with jQuery?

+3


source to share


1 answer


$( document ).ready(function() {
  $('.divGrid').hide();
  $('.').on('change',function(){
    $('.divGrid').show();
  });

});

      



Change title names as needed

0


source







All Articles