Turn off submit action : Form Submit « jQuery « JavaScript DHTML
- JavaScript DHTML
- jQuery
- Form Submit
Turn off submit action
<html>
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("form").submit(function () { return false; });
});
</script>
</head>
<body>
<form>
<input type="text" />
</form>
</body>
</html>
Related examples in the same category