Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $('.lightbox img').each(function(){
- $(this).wrap(function() {
- return '<a href="' + $(this).attr('src') + '" />';
- })
- });
- </script>
- <script>
- $(".lightbox a").attr("data-toggle", "lightbox");
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement