Try:
$( "*[id^=bga-topmenu_]" ).click(function() {
$(this).find("li.submenu").toggleClass( "sumenu_show" );
});
You can use $(this)
to get the current context (i.e. the clicked element) and then find all <li>
elements with the submenu class
within that context, using the .find()
method.