You can just search for all ids that start with top_sub_menu_
You need to use the ^ like this:
// JQUERY var menuid = $('[id^="top_sub_menu_"]').attr('id'); // JAVASCRIPT var menuid = document.querySelector('[id^="top_sub_menu_"]').id
You can just search for all ids that start with top_sub_menu_
You need to use the ^ like this:
// JQUERY var menuid = $('[id^="top_sub_menu_"]').attr('id'); // JAVASCRIPT var menuid = document.querySelector('[id^="top_sub_menu_"]').id
You can just search for all ids that start with top_sub_menu_
You need to use the ^ like this:
// JQUERY var menuid = $('[id^="top_sub_menu_"]').map(function() { return this.id; }).get(); // JAVASCRIPT var menuid = document.querySelector('[id^="top_sub_menu_"]').id
You can just search for all ids that start with top_sub_menu_
You need to use the ^ like this:
// JQUERY $('[id^="top_sub_menu_"]') // JAVASCRIPT document.querySelector('[id^="top_sub_menu_"]')
You can just search for all ids that start with top_sub_menu_
You need to use the ^ like this:
$('[id^="top_sub_menu_"]')