JSFiddle - React, Tailwind, and code Playground

by icntfan

HTML

<!DOCTYPE html>
<html>
<head>
  <style>
button { margin:5px; }
button#theone { color:red; background:yellow; }
</style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <button id="theone">Birşey yapmaz...</button>
<button id="bind">Bind Et</button>
<button id="unbind">Unbind Et</button>

<div style="display:none;">Tıkla!</div>
<script>

function aClick() {
  $("div").show().fadeOut("slow");
}
$("#bind").click(function () {
  $("#theone").live("click", aClick)
              .text("Tıklanabilir!");
});
$("#unbind").click(function () {
  $("#theone").die("click", aClick)
              .text("Birşey yapmaz...");
});

</script>

</body>
</html>