$().ready(function(){$('#of1').validate({errorPlacement: function(error, element) {if ( element.is(":text") )error.appendTo( $(element).parent().find("span.error"));else if ( element.is("select") ) error.appendTo( $(element).parent().find("span.error"));else if ( element.is(":file") ) error.appendTo( $(element).parent().find("span.error"));else if ( element.is("textarea") ) error.appendTo( $(element).parent().find("span.error"));else if ( element.is(":checkbox") ) error.appendTo( $(element).closest("li.lisub").find("span.error"));else if ( element.is(":radio") ) error.appendTo( $(element).closest("li.lisub").find("span.error"));else $(element).after(error);},rules: {"item-3604": {required: true},"item-3605": {pattern: /^[а-яА-ЯёЁa-zA-Z0-9]+$/},"item-3606": {pattern: /^[а-яА-ЯёЁa-zA-Z0-9]+$/},"item-3607": {},"item-3608": {},"item-3609": {},"item-3610": {},"item-3611": {},"item-3612": {},"item-3613": {},"item-3614": {email: true},"item-3615": {email: true},"item-3616": {}}, submitHandler: function(form) {$(form).ajaxSubmit({url:"https://crownpl.com/index.php?route=information/form/ajax_send&form_id=1",target:'#sid-1',type:"post",beforeSubmit: function(){$('#of1 .hide-form').show();},success: function(){$('#of1 .hide-form').hide();}});}});});