So I am trying to get $(this) to work.
This does not work:
$(".tournament-thumb").backstretch($(this).data("url"));
But this does:
$(".tournament-thumb").backstretch($(".tournament-thumb").data("url"));
I need to take the url from the data. Here is the HTML:
<div class="tournament-thumb" data-url="{{asset('images/tournament/' . $tournament->image)}}">
Am I missing some vital part with $(this) and .data ?