Skip to content

Tag: jquery

Problem with lightbox, on click event is not working

I have a stupid problem with jQuery.. I’m trying to make a simple lightbox and I have problems with the “close” button.. Here is what I have – a grid with some color variations. We have an image and a text for the color. When we click on it, we should see the image in a lightbox with b…

array javascript loop wrong

it´s a simple question but i can´t solve. Always when i tray to do loopp in my array return index 0 llamadas its my varaible from controller, i´m working with laravel 5.6 how backend llamadas contain this: and his original content content wihtout for never i show one array for this way in push i need extract …

Search in current page using jQuery

I have a code in jQuery that searches if a div tag exists with a certain class, a function should be executed. The code works fine, but the issue is that the function is executed in every page because the div exists on the website. Is there a way to check if the div exists on the current page or