本文转自:http://stackoverflow.com/questions/5721724/jquery-how-to-get-which-button-was-clicked-upon-form-submission $(document).ready(function() { $("form").submit(function() { var val = $("input[type=submit][clicked=true]").val…
The plugin can be applied to a form with multiple file input fields out of the box. The files are sent to the server with the parameter name of the file input field clicked by the user. The following is a short howto on how to add an additional file…