In my html:
<input type="image" src="http://placehold.it/145x145" data-bind="click: imgClick"/>
<input type="file" id="artImage" style="display: none;" />
In my viewmodel:
var imgClick = function () {
$("artImage").click();
};
If I put a debug breakpoint on the '$("artImage").click()' line, it is hit. I get no error in the console, nothing happens on screen though.
Seems to work ok in a fiddle? http://jsfiddle.net/nVrSP/ so I'm not sure why it's not working on my page.
(in case anyone asks, I'm trying to do a clickable image to trigger a file upload browse)