21 lines
490 B
JavaScript
21 lines
490 B
JavaScript
$(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;
|
|
})
|
|
}); |