Inger wrote:Yeah, it's certainly useful to know that the problem is NOT with the way I put the attribute. But you are saying you have the script in the header. I have mine in the footer. Could it be THAT that I'm doing wrong? Are certain scripts best placed in the header? I'm busy with something else right now, but I'll get back to the problem and maybe I'll have to pick your brain
Inger, if you are trying to replicate the Tabbed Image Gallery (forgive me if I am mistaken) the problem with the example may lie in the fact the image tag gets wrapped in a picture tag in SD3 (and before versions). When this happens and you assign a id to the img tag, it actually gets assigned to the picture tag. In the script you are calling, it is suppose to copy the img src from the picture thumbnail to the main large picture img src. It runs into a problem though because the script is searching for the img tag with a certain id. That id is on a picture tag now and has no src to copy to.
If this is what you are trying to duplicate, there is another version that the script should work. You just have to supply both the thumbnail and the large pictures both.
https://www.w3schools.com/w3css/tryit.a … tors_image
Someone like Eric could probably figure out a fix for this version if in fact it is the one you are referring to.
https://www.w3schools.com/howto/tryit.a … mg_gallery
It would be a pretty neat component if you can get it to work !
Bootstrap 5 CSS Grid.