i have form with user data to input and javascript ajax to send information on server and handle it with php to send this info on email, but when i submit, ajax send this informatio twice javascript:
$.ajax({
type: "POST",
url: "<?php echo JURI::root(). " / components / com_searchtour / handler.php " ?>",
data: {
'birthday': $("#birthday").val(),
'name': $("#name").val(),
'name2': $("#name2").val(),
'name3': $("#name3").val(),
},
success: function(html) {
$('div#text_after_submit').append("<h2>Отправлено</h2>");
}
});
return false;
found the problem i have some code below this
$(function(){
$.datepicker.setDefaults(
$.extend($.datepicker.regional["ru"])
);
when i remove it, now all works fine :) thanks everyone for help