Skip to content

Instantly share code, notes, and snippets.

@IamSohaggazi
Last active June 8, 2018 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IamSohaggazi/abe374a878bcca5fd2785eb03ad325fb to your computer and use it in GitHub Desktop.
Save IamSohaggazi/abe374a878bcca5fd2785eb03ad325fb to your computer and use it in GitHub Desktop.
// owl dot number enable
var i = 1;
$('.owl-carousel .owl-dot').each(function(){
$(this).text(i);
i++;
});
//way two
var dot = $('.slideWrap .owl-dot');
dot.each(function() {
var index = $(this).index() + 1;
if(index < 10){
$(this).html('0').append(index);
}else{
$(this).html(index);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment