JSFiddle - React, Tailwind, and code Playground

by shriek

HTML

<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<input type="button" value="TestKO" data-bind="click: function(data,event){ test(event) }"/>
<input type="button" value="TestPlain" onClick="test(event)"/>

JavaScript

function test(e){
    var e = window.event || e;
    alert($(e.currentTarget).val());
}
vm = {};
ko.applyBindings(vm);