var owl = $('.owl-carousel');
owl.owlCarousel();
$.ajax('/test.php').done(function (response) {
if (typeof response === 'string' && response.length > 0) {
$('.owl-carousel').html(response);
owl.trigger('refresh.owl.carousel');
} else {
console.log(response);
}
}).fail(function (jqXHR, textStatus, errorThrown) {
console.log(textStatus);
console.log(errorThrown);
});
$('.owl-carousel').owlCarousel();
только при успешном запросе ajax, а не ДО него $('.owl-carousel').owlCarousel({
autoplay:true
})
<a id="link"> Ссылка </a>
#link{
color: red
}
.slider_active:before{
top: -3px
}
input {
border: 0px
}
input{
border: 1px solid #ccc;
}
.btn{
background: url(img.png) no-repeat left 50%;
background-size:0% 100%
transition: 0.5s;
}
.btn:hover{
background-size:100% 100%
transition: 0.5s;
}
$("#amount").val( String($("#slider-range-min3").slider("value")) + '%' );
<div class="wrapper">
<input type="text" id="amount" readonly>
</div>
.wrapper:after{
content: '%';
display: inline-block;
}