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 bigger size.
Tag: jquery
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 desc for to
CSP issues with javascript and css – password visibility toggle
I am currently working on some frontend development on a server. However when I try to add inline css and javascript for my password visibility toggle I keep getting the same CSP errors in google chrome. Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self’ ‘unsafe-eval’ ssl.google-analytics.com The code I have tried :
Why are all tables sorted although only the first one is clicked?
I am creating a custom table for my application, which is sortable. The problem comes when i have multiple sortable tables. The sorting of the last table works fine, but when I click on the first table header all the other tables also gets sorted. All the sorting and filtering I did is inside the below library I just want
how to send jquery dynamic data to controller
guys I’m new to jquery as well as javascript. I want to make an application in laravel where I have to add product and their detail dynamically. So I tried Jquery first time. I got Jquery code but now I can’t get how these values pass through the controller So please help me out with this. Thank You This is
Having trouble getting inside an .each function that finds checkboxes
I’ve used similar code earlier in the application and it works, but for some reason, I cannot get anything inside the .each function here to fire. I have an application where you can check a membership checkbox to apply a 10% credit to the premium of a premise. The number of premises is dynamic, so when you check the membership
How to get audio.duration from a player and save it to a div on a click?
I’ve been looking for a way to get the duration of a MP3 file that’s hosted remotely and I found answer from another question (How can I get the html5 audio’s duration time) and now I’m trying to see if I make it work. I’m hung up this part: What that code does is getting the duration of a MP3
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
How do I find the nearest Past or Future Date in an array of Dates by an DateObject?
Let’s say we have an Array of Dates and an Date Object, which we need to search in the dateArr, for example: And all together we have this PLUS a function to return us the nearestDate in dateArr by findDate which can lie in the past or future What I tried so far without sucess … And somehow the snippet
CSS Border animation takes space inside table, rough animation when using position absolute
I’m trying to make a notification button with animation effect using border, but the animation is affecting the width and height of cell: What have I tried: This code should executedly fine by theory, though it’s rough when it animates. Using position: absolute and fixed broke the entire notification’s position. I tried applying overflow:hidden or scroll, doesn’t really do the