how can i trigger this function without using the form submit?
$(\'#myForm\').submit(function() { ....
You could try -
$('#myForm').trigger('submit');
Working demo - http://jsfiddle.net/ipr101/KvwMb/1/