Hi there,
Please check again, I changed the code to this
jQuery(document).ready(function($){
$('.mobile .menu-item-has-children').on('click', function(e) {
$(this).find('.sub-menu').toggleClass('in');
});
$('.mobile .x-sub-toggle').off().on('click', function(e) {
e.preventDefault();
$(this).parents('.menu-item-has-children').find('.sub-menu').toggleClass('in');
});
});
THanks!