Jump to content

submit form and refresh in target div not POSTING


dflow

Recommended Posts

 

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> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.