Skip to content

Tag: jquery

execution script for several ID – loop?

I’m downloading ID from localStorage.getItem(1,22,3,14….). I want every single ID to be executed in jQuery (if it exists on the website). I can execute the code for one ID, but I don’t know what to do to make each ID after the decimal point executed. I try so but it doesn’t pass. I hav…

JS Toggle Submenu within Mega Menu

The issue I’m having is, creating a submenu inside another menu. Demo: LIVE DEMO (Important, cause CSS is needed as well I’m having this Bootstrap Mega Menu, which also contains a submenu (Column 2). On click, it should hide Column 3, and show the submenu items. (it does its job) Currently, I&#821…

Getting jQuery to push a value from an ‘a’ link

Hoping this is fairly simple and I’ve just overlooked something… I currently have a page with a bunch of checkbox options. Each checkbox will execute a very simple script adding its value to a string, where it then gets passed over to PHP to do the rest. The html part for the checkboxes looks like…

Make jQuery code run on page-change and load

I have a jquery code that inserts and prepends breadcrumbs on certain pages. I’m injecting this code through a third party tool where I can write JS. I only want these breadcrumbs for certain pages. This was my original code that worked fine on desktop: On mobile it didn’t load after changing cate…

Drag an Element as a window

I have an element that contains a couple of elements and I want that while clicking on the green header of the element it will be dragged with the mouse movement and it will stay in the last position(it’s a simulation for a windows window). Answer Since @User have described it properly i am not going to…

Jquery script not working after ajax call

I have a problem, This Jquery Script not working after I did an ajax call and replaced the old content, you can see in the scripts the “slideToggle()” Not working but other orders like add and remove class’s working well? how I can fix this? Answer