This is my home project. I tried through localStorage I didn’t even catch up on how to implement it ...

$( ".myCheck" ).click(function() { $(this).toggleClass('jquery-checkbox-on'); if($(".myCheck").hasClass('jquery-checkbox-on')){ content = $( "div.props:contains('Нет в наличии')" ).parent().parent().detach(); }else { content.appendTo(".b-grid-iaCtqJ7Nfn"); } }); 
  • as your code is not too connected with the question in the title and the text. You copied that piece of code to us? - teran
  • Indeed, as on a new page to get front data, performed by the front of another page ... you misunderstand a little how to work. you can not just take and pass the front of one page to another. as an option if you need to save the result of js, you can make ajax after adding a class to an element. in request it is necessary to transfer the class name. further back to save this name somewhere. And here is a new page to start with what to do ajax. who asks "what is saved there then?". The back will climb where it has been saved, will look and return. and js will stamp this class. - Dmitriy
  • @ Dmitry, you can save the settings in localStorage . If the user chooses the color of the button, then localStorage is generally the best place to keep it when navigating between pages. - teran
  • : D found out about localStorage. Well then tproger.ru/articles/localstorage there seems to be nothing complicated. - Dmitriy
  • @ Dmitry there is still a sessionStorage . - teran

0