how can i trigger this function without using the form submit?
$(\'#myForm\').submit(function() { ....
jquery
$(function(){ $('#myForm').submit(function() { ....}); $("#btn").click(function(){ $('#myForm').trigger('submit'); }); });