jquery onclick button post
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$(function() {
$('#submit1').click(function(e) {
e.preventDefault();
$("#Demo").submit();
});
$('#submit2').click(function(e) {
e.preventDefault();
$("#Demo").submit();
});
});
});
</script>
</head>
<body>
<form action="javascript:alert('submitted');" method="post" id="Demo">
<label>Team</label>
<input type="text" name="name" value="" />
<input type="submit" name="submitme" value="Submit" id="submit1" />
<p><a href="#" id="submit2">Submit</a></p>
</form>
</body>
</html>
Also in JavaScript:
- postgresql nodejs
- react cloud foundry nginx 404
- javascript check if text is overflowing
- javascript palindrome
- outputstream to image js example
- mongoose reference another model
- javascript online test
- javascript loop through array
- javascript collision detection
- javascript have special characters
- javascript unicode to string
- how to get an array from another script in js
- how to delete everything from a folder in js
- jquery function return
- what fungal activity increases greenhouse gases
- how to repeat component onclick in react
- running scripts is disabled on this system react js
- how to get focused element in jquery
- npm ERR! errno ECONNRESET
- express js list all routes
- list all node processes
- sort data according to date in js
- js for in object
- sum range javascript