Trying to avoid multiple submission on submit button click using attribute disabled, but on click it just block the button and nothing happens. Have tried to add id to Html.Begin form, but on click it gives server application error like : the parameters dictionary contains a null entry for parameter 'id' of non-nullable type System.Int32
@using (Html.BeginForm(MVC.Controller.MethodName(), FormMethod.Post, new { id = "submitFormId" }))
<button class="btn btn-w-m btn-primary" type="button" id="submitButtonId" value="AddSmth" onclick="return validateForm(event)">
<i class="fa fa-plus"></i> Add
</button>
And js:
$("#submitButtonId").attr("disabled",true);
$('#submitFormId').submit();