Drop-down menu does not work on mobile devices


/ Published in: JavaScript
Save to your folder(s)

It works for me


Copy this code and paste it in your HTML
  1. $('.dropdown-toggle').click(function(e) {
  2. e.preventDefault();
  3. setTimeout($.proxy(function() {
  4. if ('ontouchstart' in document.documentElement) {
  5. $(this).siblings('.dropdown-backdrop').off().remove();
  6. }
  7. }, this), 0);
  8. });

URL: http://qaru.site/questions/817615/drop-down-menu-not-working-on-mobile-devices#2991010

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.