var formvalidate; function ajaxSubmit(P_form){ formvalidate=$(P_form).validate({ errorPlacement: function(error, element) { }, submitHandler: function(form){ jQuery(form).ajaxSubmit({ target: '#ajax_div', cache: false }); } }) } function ajaxLoad(P_url,P_parms,P_div,P_method){ if(P_div=='' || !$(P_div).length){ P_div='#ajax_div'; } if(P_method==''){ P_method='GET'; } $.ajax({ url: P_url, type: P_method, cache: false, data: P_parms, success: function (data, textStatus) { $(P_div).html(data); } }); }