I have an input element for displaying the file upload dialogue.
I've tried to bind it using Knockout JS 1.3 as follows:
<input class='file-upload' type="file" multiple="multiple"
accept="image/*" data-bind="change: function(e){alert('!!'); return
true;}" />
This does not work.
I am attempting to capture the "change" event, similar to the
following:
$('.file-upload').live('change', function () {
alert("!!");
});
Has anyone got this to work (without having written a custom binding)?
Thanks!