Добрый день!Подскажите,пожалуйста .почему при повторном нажатии на кнопку ничего не происходит?При первом все ок.
$(document).ready (function () {
$("#form").submit ( function (event) {
event.preventDefault();
var dd = $('#form').serialize();
$.ajax ({
url: "test.php",
type:"POST",
data: dd,
dataType:"html",
beforeSend:funcBefore,
success:funcSuccess,
error: function(xhr, str){
alert('Возникла ошибка: ' + xhr.responseCode);
}
});
});
});