Use like this
$('.dropdown-menu').click(function() {
$('.dropdown-menu').not(this).children('ul').slideUp("slow");
$(this).children('ul').slideToggle("slow");
$(".thisismobile").find("a").next().show();
});
$(".thisismobile").find("a").hover(
function() {
$( this ).next().slideDown();
}, function() {
$( this ).next().slideUp(); }
);
Edit
$('.dropdown-menu').click(function() {
$('.dropdown-menu').not(this).children('ul').slideUp("slow");
$(this).children('ul').slideToggle("slow");
$(".thisismobile").find("a").next().show();
});
$(".thisismobile").find("a").hover(function(){
$( this ).next().slideDown();
});
$(".submenu").mouseleave(function(){
$( this ).slideUp();
});