Home › Forums › JavaScript › Need Help In JQuery › Reply To: Need Help In JQuery
Hey Amanda,
Thankyou. I have created this and working fine but when i switch it from desktop to mobile view (CRLT Shift M firefox) or mobile to desktop it did not work without pressing refresh button.
<script type=”text/javascript”>
$(document).ready(function($) {
if ($(window).width() < 767) {
$(“.large–three-twelfths .folloter-li-box1”).hide();
$(‘.large–three-twelfths’).find(‘h3’).click(function(){
` //Expand or collapse this panel
$(this).next().slideToggle(‘fast’);
//Hide the other panels
$(“.large–three-twelfths .folloter-li-box1”).not($(this).next()).slideUp(‘fast’);
});
}
`
});
</script>
I want it to work on all resolution without doing any refresh.
Thankyou again.