Q
Q
Qurel2020-02-15 22:01:43
JavaScript
Qurel, 2020-02-15 22:01:43

append method not working?

I have a site on ocstore, it has a paid UltraStore template installed, I want to change the design of owl-dots, owl-dots is wrapped in an additional div, I can’t insert a span element into this div, I write the code in the admin panel, where you can paste your code.
Website: link
Here is the code itself:

$(document).ready(function(){
  	var owlDots = $('.owl-dots');
  	owlDots.addClass('fltr page-list');
  	//$('.owl-dot').before('<span class="from-move"></span>');
  	
  	var owlDotsContainer = $('<div class="owl-dots__container"></div>');
  	owlDots.wrap(owlDotsContainer);
  	owlDotsContainer.append('<span class="from-move"></span>');
})

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question