dflow Posted March 22, 2012 Share Posted March 22, 2012 i'm submitiing a form the following ajax refreshes the targeted div but the submit is not posting the form variables, jquery is included <script type="text/javascript" src="js/jquery.validate.js"></script> <script type="text/javascript" src="js/jquery.form.js"></script> <script type="text/javascript"> $('document').ready(function(){ $('#form').validate({ rules:{ "searchField":{ required:true, maxlength:40 }}, messages:{ "searchField":{ required:"This field is required" } }, submitHandler: function(form){ $(form).ajaxSubmit({ target: '#searchresults', success: function() { $('#formbox').slideUp('fast'); } }); } }) }); </script> Link to comment https://forums.phpfreaks.com/topic/259485-submit-form-and-refresh-in-target-div-not-posting/ Share on other sites More sharing options...
dflow Posted March 22, 2012 Author Share Posted March 22, 2012 ok the post is working now a function i missed. now ay idea how to implement a loading gif here? Link to comment https://forums.phpfreaks.com/topic/259485-submit-form-and-refresh-in-target-div-not-posting/#findComment-1330203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.