JSFiddle - React, Tailwind, and code Playground

HTML

<a href="http://domain.mysite.com/">yeah, link</a>
<a href="http://google.com/">g, link</a>
<a href="http://domain.mysite.com/">yeah, link</a>
<a href="http://domain.mysite.com/">yeah, link</a>

JavaScript

$(document).ready(function() {
$("a[href*='mysite']").each(function(i){
            alert("hello");
            //this line bombs out...so commenting it out for now...
            //$(this).attr('href',$(this).attr('href') + "?ref=" + $.cookie.get("tb_ref"));
        });       
});