showing results for - "drop down menu js"
Mattia
13 Jun 2020
1<script>
2$(document).ready(function(){
3  var wWidth = $(window).width();
4  if(wWidth > 768){
5  $("ul.bts-nav li").hover(function(){
6     $(this).children("ul").slideToggle(400);
7  });
8}
9else{
10  $("ul.bts-nav li a").click(function(){
11     $(this).next("ul").slideToggle(400);
12  });
13}
14});
15
16</script>