I am using AjaxForm plugin to submit my form without refresh. like:
$(\'#my_form_id\').ajaxForm(function(){ //something on success or fail });