JSFiddle - React, Tailwind, and code Playground

by Eric Howe

HTML

<script src="http://jquerymobile.com/test/js/jquery.mobile.js"></script>
<link rel="stylesheet" href="http://jquerymobile.com/test/css/themes/default/jquery.mobile.css">
<a href="#" data-item=12 data-status=true class="follow">
  <span class="ui-btn-inner">
    <span class="ui-btn-text">
      Follow
    </span>
  </span>
</a>

CoffeeScript

$("a.follow").unbind('click').bind 'click', (event, data) ->
    event.stopPropagation()
    clickedEl = $(this).closest('a')
    console.log(clickedEl)