JavaScript
7
Вклад в тег
<input name="name" type="text" class="required" aria-required="true" placeholder="Ваше имя">
$('#kont-res-or-run').on('submit', function(e) {
if (!$(this).valid()) return false;
if ($("#kont-res-or-run").length){
$("#kont-res-or-run").validate({
rules:{
telef:{
required: true,
digits: true,
minlength: 10,
maxlength: 15,
},
message:{
required: true,
minlength: 8,
maxlength: 300,
},
}
});
}
$post_url = explode('/', $_POST['ssilka_objav'], 6);
$post_type = $post_url[3];
$post_zaglav = $post_url[4];