I want to prevent users submitting forms multiple times in .NET MVC. I\'ve tried several methods using Javascript but have had difficulties getting it to work in all browser
Use this simple jquery input field and will work awesomely even if you have multiple submit buttons in a single form.
$('input[type=submit]').click(function () { var clickedBtn = $(this) setTimeout(function () { clickedBtn.attr('disabled', 'disabled'); }, 1); });