For some reason it's not changing the action of the forum. I have some code to change the action of a form when a button is clicked:\[code\] function changeForm(event){ alert("Before: "+jQuery("#franchiseform").attr("action")); jQuery("#franchiseform").attr("action", "franchisepreview.php"); alert("After: "+jQuery("#franchiseform").attr("action")); jQuery("#franchiseform").submit(); }\[/code\]The binding:\[code\] jQuery("input.preview").bind("click", changeForm);\[/code\]The form:\[code\]<form method="post" enctype="multipart/form-data" action="franchiseinsert.php" class="insert-new" id="franchiseform">\[/code\]The buttons:\[code\]<input type="button" value="http://stackoverflow.com/questions/2103697/Preview" id="preview" name="preview" id="preview" class="preview" /><input type="submit" value="http://stackoverflow.com/questions/2103697/Insert" />\[/code\]