Issue
<input type="submit" name="btnADD" id="btnADD" value="ADD"/>
when user click add button twice, from get submitted twice with same data into table. So Please help me to restrict user to submit from twice.
Solution
try out this code..
<input type="submit" name="btnADD" id="btnADD" value="ADD" onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();" />
Answered By - Vijay
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.