Here is the best I've been able to do so far:
$('#uploadButton').live('click', function(){ new AjaxUpload('uploadButton', { action: 'upload-handler.php', onComplete: function(file, response){ alert(response); }); });
live () works, but it only creates an object after a click. So I need to click it again for the boot trigger to work.
So, I was trying to somehow remove the extra click. I was hoping the following would work at the end of the function, but it is not:
$(this).trigger("click");
source share