Issue using [id^=a] to target ID "starting with"

New

I have a page that has a table and on each row we have a button. We have 25 row so each ID is different. Something like this:

button#plusMoreImagesText_1

button#plusMoreImagesText_2 …..etc.

I was trying to capture click events on the button regardless of which one was clicked using the “starts with ID” format...like this:

[id^=plusMoreImagesText_]

which I have used it before, but for some reason this time is not working….and I wonder if that’s becase the element is a <button> and not a <a> tag.

Is that right, or something is wrong with the format. I’ve also tried this just in case:

[id^=”plusMoreImagesText_”]

but also didn’t work.

0

Comments

1 comment

  • Hi @DataSeed99! I just checked in with our Support Team on this one, and they recommended we create a case so they can take a closer look at what’s happening. I’m going to create that case for you now, and they’ll follow up shortly via email. Apologies for the delay here!

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post