I want to get current menu id and i was able to find out some solutions for this like
How to get current-menu-item title as variable?
How to get current page menu item name instead of full menu item list
I implement this code but it does not work when i have same term or page multiple time in my menu. For Example i have Asia (term) in my menu twice and it always return id of its first occurrence. I check this in source code and both these menu elements (Asia) are assigned with current-menu-item class. So in this case how i can get correct menu id with multiple occurrence.
Your help will be much appreciated. Thank you!