I am making a page with logos and using simple modal to make a popup appear to get more information about the logo clicked.
I followed this question/answer correctly and was able to make the 2 first logos work; jQuery SimpleModal: two different modal contents in the same page
But before going further, I would like to know if there is a way to avoid having to add a new function for each new windows (#basic-modal .basic, #basic-modal .basic2, etc...). Since I have about ~30 logos (and more coming), is it possible to make ONE function for all instead of one for each?
It would be more clear for the page instead of having 30 JS function ..
Thanks a lot!