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 have to loop it, right? can anyone
Tag: jquery
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’m grabbing the submenu content with jquery html() and
CSS Hover and Display Inline Block not working properly
Problem is when I hover, the overlay affects all the items, i would like it to do one at a time, not all at once and also I can’t get the display to show Inline-Block, items seem to be taking up the whole row, once it’s fixe i know i will have to adjust the figcaption because ideally that would
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 this (repeated for multiple years):
jQuery Collapse function throws error on upgrade of WordPress and PHP
I have upgraded an old WordPress site to the latest WordPress. PHP version was also upgraded. The site had a custom sidebar menu where opening and closing was controlled with a custom.js script. The menu no longer toggles. After the upgrade the following error appeared in the console: Uncaught TypeError: $submenu.collapse is not a function. Not quite sure what the
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 category by clicking the li items. So I
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 describe again there
How can I use a variable from another JavaScript file?
I have two html pages, each with a js file. When I click on a button on page 1, it should change a variable param to true and redirect the user to page 2. In page 2 I have to check if param = true and then continue my script. page1.html script1.js page2.html script2.js I tried export/import param but I
I am trying to use AJAX to change the orderby and order arguments in a WP_Query, but I can’t determine why my code won’t work [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 10 months ago. Improve this question
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