Created
June 24, 2020 13:35
-
-
Save mavisland/189ee2619d5d92341e7da9e753bc8242 to your computer and use it in GitHub Desktop.
Bootstrap 4 Remove Dropdown Attribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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