Home › Forums › JavaScript › how can i access these classes › Reply To: how can i access these classes
December 14, 2016 at 6:36 pm
#249019
gearheartstudio
Participant
ok so I changed the
…
<script>
$(this).attr(‘data-src’,’contents/……’);
</script>
…
to
…
<script>
$(‘#wide4’).attr(‘data-src’,’contents/……’);
</script>
…
at the start where it sets to logolink.png src, I lso set id’s for each for classes. This allowed me to get only 1 image to load, yet it’s within the each which fires multiple times…am I getting closer? I also updated the links just for codepen so that it loads the images and logolink so you can actually see whats going on