I have a form like this
You can do it as follows:
$('#myForm').submit(function() { this.action = 'http://mysite.com/.html'; return true; }