Hello, I have this code that switches an image on radio button change. I then applied jquery ui buttonset to the radio button and now it's not working. Here is the code I used:
I realized that the buttonset disables the radio input and uses the label tag for selection. I noticed that it uses a specific attribute called "aria-pressed" and sets it to equal "true" or "false". So I thought maybe I could use this to swap the image. So I tried the following code but it didn't work: