добавить класс работы до вызова ajax, но не после вызова ajax?Добавить класс, не работающий после вызова ajax
$.ajax({
type: "POST",
url: "../ajax/basket.php",
data: {planproductId: productIDVal, action: "addToBasket"},
success: function(theResponse) {
if (theResponse.indexOf("<li>" < 0))
{
$("#notication").addClass('error-box');
$("#notification").text(theResponse);
$("#notificationsLoader").empty();
return;
}
}
});
.error-box {
background:#ffecec url('../img/error.png') no-repeat 10px 50%;
border:1px solid #f5aca6;
}
Установка проверки орфографии, чтобы показать, что 'notication' написано неправильно? – ircmaxell