Answers for "drop down menu js"

0

drop down menu js

<script>
$(document).ready(function(){
  var wWidth = $(window).width();
  if(wWidth > 768){
  $("ul.bts-nav li").hover(function(){
     $(this).children("ul").slideToggle(400);
  });
}
else{
  $("ul.bts-nav li a").click(function(){
     $(this).next("ul").slideToggle(400);
  });
}
});

</script>
Posted by: Guest on September-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language