I\'m using ajaxSubmit plugin to send Ajax forms, but for some reason this plugin doesn\'t send names/values of input[type=image]\'s. So now I\'m catching the su
input[type=image]
This will catch whichever input element initiated the submit:
$(document).ready(function() { var target = null; $('#form :input').focus(function() { target = this; alert(target); }); $('#form').submit(function() { alert(target); }); });