Welcome Guest, Not a member yet? Register   Sign In
form_submit() does not post
#8

(04-23-2015, 08:13 AM)CroNiX Wrote: put your disable code on the SUBMIT button after you click it, so once they submit the form it disables the submit button.

Hi CroNix, Thanks for solution~ but that also is not working i had tried before, when the form is submitting the disable submit button is not posting as well. Unless you are using ajax.

i have used several method to do prevent multiple submit also not working as well.

method 1 ( Not Working )

$('#submit_btn').click(function(e) {
e.preventDefault();

// disable button
$(this).attr('disabled','disabled');

// submit form
$('#form').submit();
});

method 2 ( Not Working )

$('form').submit(function() {

// disable button
$('#submit_btn').attr('disabled','disabled');
});

Eventually, what i done is don't disabled the button, you can use overlay to cover it or set css to button pointer-events: none;
Reply


Messages In This Thread
form_submit() does not post - by Edwin - 04-19-2015, 08:39 AM
RE: form_submit() does not post - by webnaz - 04-19-2015, 06:21 PM
RE: form_submit() does not post - by Edwin - 04-20-2015, 06:15 AM
RE: form_submit() does not post - by mwhitney - 04-20-2015, 10:12 AM
RE: form_submit() does not post - by kilishan - 04-20-2015, 10:16 AM
RE: form_submit() does not post - by Edwin - 04-22-2015, 11:47 PM
RE: form_submit() does not post - by CroNiX - 04-23-2015, 08:13 AM
RE: form_submit() does not post - by Edwin - 04-25-2015, 10:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB