var text = "";
for(let i = 0; i < 5; i++)
{
text += `bla-bla text i = ${i}`;
}
Cannot read property 'hostname' of undefined
for(var i = 0; i < notMyLink.length; i++)
function sendsky() {
var name = document.getElementById('name').value;
var phone = document.getElementById('phone').value;
var page = document.title;
$.ajax(
{
url: 'http://site.ru/modules/mod_skynetrtxfooter/caller.php',
type: 'POST',
data: {
name: name,
phone: phone,
title: page,
},
success: function(data)
{
document.getElementById('answer').innerHTML = data;
}
});
}
Смотрел в консоли, что он делает с разметкой. Он её вычищает полностью.
clientThanksCarousel.slick('unslick').empty();
у вас удаляется сам элемент #clientThanksCarousel
со страницы, либо вы его как-то еще удаляете. Так как при следующем обращении у вас ошибка. $(selector).mouseenter(function() {
$(this).stop().animate({...});
});
$(selector).mouseleave(function() {
$(this).stop().animate({...});
});
$(".first_class").click(function() {
$(this).addClass('second_class');
$(this).removeClass('first_class');
$(this).click(function() {
// do smth
});
});