I’m trying to update my inline code to be external for the new Chrome extension manifest.
My old code is:
<input id="importbutton" type="file" onchange="dataImport(this.files);">
My new code is, except it isn’t working – maybe someone can help me debug this?
$('#importbutton').bind('onchange', function() {
var myimport = $('#importbutton').val();
dataImport(myimport.files);
});
You could try using the
changemethod (can’t test right now, so apologies if it crashes and burns 🙂 ):