rodrigosantosbr

[JS] Disable multiple submit

Jan 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

http://jsbin.com/?html,js,output


<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<form name="form">
<input type="checkbox" value="1" id="chk" name="item1"> Item 1
<input type="checkbox" value="2" id="chk" name="item2"> Item 2
<input type="checkbox" value="3" id="chk" name="item3"> Item 3
<input type="checkbox" value="4" id="chk" name="item4"> Item 4
<input type="checkbox" value="5" id="chk" name="item5"> Item 5
<br><br>
<input type="submit" value="Enviar" onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();" >
</form>
</body>
</html>
Add Comment
Please, Sign In to add comment