Btndisplay
Jump to navigation
Jump to search
Hide and show certain products with a button
HTML
<div id="filters"> <button id="filter-berry">Toggle berry flavors</button> <!-- <button id="filter-citrus">Toggle citrus</button> --> </div>
JQuery
$('#filter-berry').click(function(e) { e.preventDefault(); $('#cart-water').find('.berry').slideToggle(500); });
Back To Top< — >Category< — > Home