jQuery toggleClass and bootstrap dropdown on hover -


what not understand. have function:

function dropdown_opened(){      if ( jquery('#autocollapse').hasclass('collapsed') ) {       }else{           jquery('.dropdown').hover(function() {              jquery(this).toggleclass('open');              console.log('aaaaa');          });      } 

}

i set windows.resize event ... when #autocollapse have class "collapse" fires console.log('aaaaa').

what try make bootstrap dropdown active dropdown-toggle button state opened menu - on hover.

what wrong? should in way remove hover ?


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -