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> Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.