Skip to content

Instantly share code, notes, and snippets.

@mavisland
Created June 24, 2020 13:35
Show Gist options
  • Save mavisland/189ee2619d5d92341e7da9e753bc8242 to your computer and use it in GitHub Desktop.
Save mavisland/189ee2619d5d92341e7da9e753bc8242 to your computer and use it in GitHub Desktop.
Bootstrap 4 Remove Dropdown Attribute
if ($(window).width() > 992) {
$(".navbar .dropdown-toggle").removeAttr("data-toggle");
} else {
$(".navbar .dropdown-toggle").attr("data-toggle", "dropdown");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment