javascript - prevent multiple submission with button -
i viewing possibilities preventing multiple submission button tag. problem facing if users click submit button fast enable them submit multiple posts. restrict submission 1 submission. tried use onclick="this.disabled = true
, makes button not working @ all. current button tag looks this:
return "<button class='button btn btn-primary' id='gform_submit_button' onclick='this.disabled = true' type='submit'><span>submit!/span></button>";
can guide me how achieve this?
ultimately, cannot prevent multiple submissions on client-side. have implement these security measures on server-side, in whatever server-side language using (e.g., php).
Comments
Post a Comment