<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>New</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
<script src="admin_files/scripts/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="admin_files/scripts/ckeditor/adapters/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#page_body').ckeditor({height:400,skin:"v2"});
$("#page_form").submit(function() {
alert('Form Submitted');
return false;
});
});
</script>
</head>
<body>
<form action="admin/edit_page/edit" method="post" accept-charset="utf-8" id="page_form">
<textarea name="page_body" cols="90" rows="12" id="page_body" ></textarea>
<input type="submit" />
</form>
</body>
</html>
Tue, 07/26/2011 - 17:11
#1

Re: Prevent save button from submitting the form.
<form onsubmit='<do submit code here>; return false' id='myForm' ...> <input type ='submit' onclick="$('#myForm').onsubmit(); return false;"> </form>Re: Prevent save button from submitting the form.
Re: Prevent save button from submitting the form.
<input type="submit" value="Submit" />