I'm trying to show / hide a submenu when I click on the item in that menu (WORKS).
By default my submenu is "hidden" with CSS
.children {
position: fixed;
opacity: 0;
}
and I need to click on it to show it by exchanging with this class
.children-1 {
position: inherit;
opacity: 1;
left: auto;
margin-left: 30px;
transform: translateX(0px);
}
The script that I am using is this
jQuery(function ($) {
$( 'children' ).click(function() {
$( this ).toggleClass( 'children-1' );
});
});
The site is link
Thanks