core/skin/shkola5nt.ru/js/profile.js

21 lines
490 B
JavaScript
Raw Normal View History

2023-02-08 16:59:59 +05:00
$(function(){
$("#save_profile").submit(function(event){
//alert(1);
var to_url = $(this).attr('action');
var fam = $("#fam").val();
var imya = $("#imya").val();
var otch = $("#otch").val();
var tel = $("#tel").val();
$.ajax({
type: "POST",
url: to_url,
data: "fam=" + fam + "&imya=" + imya +"&otch=" + otch + "&tel=" + tel,
success: function(d){
//$("#span_err").html(d);
//if (d.length<5) {window.location.replace('/');}
}
});
$(".alert-warning").show('2000');
return false;
})
});