1

I want to change TB Mega Menu Dropdown on hover to Toggle on click. I tried inserting attributes using this jQuery

$("li.dropdown.parent > a").attr("class", "dropdown-toggle");
$("li.dropdown.parent > a").attr("data-toggle", "dropdown");
$("li.dropdown.parent > a").attr("aria-haspopup", "true");
$("li.dropdown.parent > a").attr("aria-expanded", "false");

But cannot work correctly. Toggle is working but hover dropdown is still active. Is there a better way to do it.

1
  • I am also looking for the same. If you find any solution please post it here. Commented Jun 30, 2016 at 10:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.