how can i trigger this function without using the form submit?
$(\'#myForm\').submit(function() { ....
return false;
adding this to function will stop the form submitting.
Or if you want to call function on a different event put the function in an appropriate event handler (a non-submit button's click?)