I created a form name="form" and and included a submit button
<button type="submit" id="create" onclick=" go();" name="create">Create</button>
This is my function go()
function go() {
$("#create").prop("disabled", true);
document.forms["form"].submit();
}
The function did disable the button, however, it did not submit the form. Help.
I know you said you wrapped it in the form however you need to give the button the type Submit and the form the go()
function like so:
<form name="form" onSubmit="go()">
<input type="submit" id="create" value="Create" />
</form>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.