Onclick Show & hide a Container using JQuery.

The HTML Contents Are here:

<button class="filter">Click Me</button>

<div class="filter-wrap">
    <p>Hello Me Here..!!</p>
</div>

The Scripts are Below.

<script type="text/javascript">
$('.filter').on('click', function(){
    if($('.filter_wrap').hasClass("letsshow")){
        $('.filter_wrap').removeClass("letsshow");
    }else{
        $('.filter_wrap').addClass("letsshow");
    }
});
</script>

h

Leave a Comment