title: Trigger jquery after writing cookie without reloading the page?
body: <p>How would i go with triggering an alarm or parse it in the html file after writing a js cookie without reloading the page first?</p>
  
  <p>I've tried <code>$(window).bind("load", function ()</code> but with no success, the alarm still doesn't trigger without reloading the page, but the cookie is written</p>
  
  <p>My JS</p>
  
  <pre><code>$(".addCookie").on("click", function() {
     Cookies.set("cookie", "added"); //adds cookie
  })
  
  $('.cookie').html(Cookies.get("cookie")); //writes the cookie in the html file
  </code></pre>
  
  <p><strong><a href="http://codepen.io/anon/pen/LZbvbd" rel="nofollow">Codepen</a></strong></p>