How to call from Dynamic Dataset onClick() based on item tag, not index

Hi,

I had a similar question dealing with index value a few months ago, which @ahmadnasriya explained very nicely, thank you. However, now I would like to do a version of that where it calls on the item.

To explain:
Let’s say I have buttons #Cheese and #Meat. Using the onClick() event handlers for each, I want to switch the dynamic page to the item that corresponds with “Cheese”.

Does that make sense? If not, please tell me so!
Thanks in advance.