Posted on 2015-02-16
I Implemented webapp with asp.net mvc4.
I have form with submit button that when users click on it they save all the data they filled up in the form. what I would like to do is when user click on submit then submit will grey out or disable until the process of saving data finish. The issue I experience now is users click on submit many times and created duplicated data.
Here is what I was trying to do:
this.disabled = true; this.value = 'Creating PO, please wait....'; this.form.submit()
This code above works but he doesn't save all my form as in my server side i need to pass param.
Here is my submit button:
<input type="submit" name="command" value="Submit" id="Submit" class="btn btn-sm btn-primary" />