Isotope trigger by passing parameter

  Kiến thức lập trình

Hi below is my script but its not workin

$(window).load(function() {
  var hash = window.location.hash.substr(1);
  var buttonFilter = '.'+hash;          
  $('button#'+hash).addClass('is-checked');    
  var filterValue = $(buttonFilter).data('filter');   
 $grid.isotope(); 
  $grid.isotope({ filter: filterValue });
});

I have passed an parameter to URL from another page and from that value I want to trigger isotope directly but not working.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT