How to remove these two inline styles next to the .dropdwon menu, I tried the remove [ jQuery ('. Dropdown-menu') attribute . removeAttr ('style'); ], unfortunately, it does not. Do not delete the inline style. Every time I navigate inline style to a display block , and when it freezes, inline style has a value : none
<ul role="menu" class=" dropdown-menu" style="display: none;">
<ul role="menu" class=" dropdown-menu" style="display: block;">
Here is my code. I am trying to remove this to size 767 or maximum width of mediaquery (767)
jQuery(window).resize(function() {
var width = jQuery(window).width();
if( width < 767 ) {
jQuery('.dropdown-menu').removeAttr("style");
}
});
jQuery(document).resize(function() {
var width = jQuery(document).width();
if( width < 767 ) {
jQuery('.dropdown-menu').removeAttr("style");
}
});
see two attached images for better visualization
When I find nav (About) the subpage display (ul.dropdown-menu), and the inline style will be set to the display block

( ) (ul.dropdown-menu), none

style = "display: none"; style = "display: block";