jQuery(document).ready(function($) { $( '#nav-main .drop-toggle' ).click(function(){ $( '#nav-main' ).toggleClass( 'dropped' ); }); });