Posts by Arthur Davi Borba Duarte • 17 points
5 posts
-
0
votes2
answers39
viewsA: Increase and decrease the amount of the selected element through the class
Solution for my answer was the following: I use in my system a template engine aimed at PHP (Twig) and with it I can return the id value of each product (through {{product.id}} )then my solution was…
-
-2
votes2
answers39
viewsQ: Increase and decrease the amount of the selected element through the class
So in the following part of my code I have a function to increase the amount or decrease of each product of the store(I will leave a photo to explain better), when I press the "+" button it…
-
1
votes1
answer29
viewsQ: How to select all existing images and add an attribute to them
So I’m trying to select all the existing images and I came to develop this code (function ($) { var elementsImg = document.getElementsByTagName('img'), len, i; for (i=0, len=elementsImg.length;…
-
0
votes1
answer48
viewsA: Jquery function works on the console, but the file does not work
Can solve instead of using the ready() used the (window).load that is only triggered when all content is loaded (including images, videos, etc). jQuery(window).load(function () {…
-
-2
votes1
answer48
viewsQ: Jquery function works on the console, but the file does not work
So, I’m using a library of Carousel Jquery (Owl-Carousel) and some elements like this excerpt below: <div class="owl-dots"><button role="button" class="owl-dot…