JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<input type="image" src="http://placehold.it/145x145" data-bind="click: imgClick"/>
<input type="file" id="artImage" style="display: none;" />
JavaScript
function SomeVM(x) {
var self = this;
}
function ViewModel() {
var self = this;
self.imgClick = function () {
$("input[id='artImage']").click();
};
}
ko.applyBindings(new ViewModel());