having trouble getting the rel attribute to work
-
I’m trying to use jQuery to add a rel attribute to all of the images on a page using the ‘slb[gallery]‘ function, it’s adding the rel attribute but the gallery is not linking. Am I using the wrong one? ‘lightbox[gallery]‘ does not work.
Thanks!
<script> jQuery(document).ready(function($) { $('a').val('data-slb-active').attr('rel','slb[comics]'); }); </script>
https://www.ads-software.com/extend/plugins/simple-lightbox/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘having trouble getting the rel attribute to work’ is closed to new replies.