I'm somewhat new to jQuery, and I try to create a mobile menu with submenus which open on "click" event.
My problem is: There are more elements with the "tile" class that have a submenu, and obviously I only want to display the submenu of that one I actually clicked on (not all of them as it happens now).
I tried this, but it opens the submenu of all ".tile" elements:
$(".tile").on("click", function () {
$(".tile ul").css("display", "block");
});
How should I correct this to display only the correct ".tile ul"?