Do you have a link where this is taking place? Posting code here directly or a screenshot won’t be enough, I’d need a link in order to be able to see what’s going on if you can.
Also, can you explain what you’re trying to do exactly? I’m a little confused. I read what all you wrote, but I’m not exactly sure what the issue is, or what you’re trying to do.