Automatically copy the alt attribute by clicking an image

Asked

Viewed 35 times

1

I have an image gallery where the attribute values alt="" are pulled from the database. I need to copy this value automatically when clicking on the image in order not to have to access the source code and give Ctrl-C in the attribute value. Someone could give me a light?

  • 2

    Edit the question and include the code of what you tried so far.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.