two column value in one input

I'm sorry, but I don't follow your explanation.
How does the example that you are using as a base differ from your data/ needs.
Perhaps you can make your own example code and we can look at that.

I'm wondering if your issue is that the selectors you want don't align with your actual data .