Skip to content

Tag: jquery

remove active class by scrolling in android

I would like to ask how can I remove active class when scrolling? Everything works fine on desktop size, it removes the active class when I’m scrolling, even if I click on any nav menu, when I’m continue scrolling it removes the active class from that nav menu. But it gets weird on mobile device, …

JQuery getJSON Disable Global Events

is there a way to disable global events inside a JQuery $.getJSON function ? The documentation only mention that the global property is available for an $.ajax call, but nothing about $.getJSON. There reason I want to deactivate is that I have a global ajaxStart event that I want to not handle the async JSON …

How can I unload/load pages using jQuery?

Here is the things I want to achieve with jQuery. First of all, I want to save a copy of the entire page as is in a variable. I then want to replace the currently loaded page with a loading page from another html file or URL without redirecting to that page. After it has done loading, I want to

jquery event handler only running once

I am having problems with jqueries “click” event handler, its working only once, and then it stops, please I need help fixing it. What I did is, I use an image as a button, for my Web app but, through jquery, but it only runs once. Here is the code: Please tell me if you need more info, Thanks. An…

get last child when using Flex order Css

I am not able to detect last child when using flex order to rearrange divs. since I have arranged order of CSS with Order. its still getting the last child as per dom tree. items divs are dynamic. so we cant use nth-child. how should I get the last child when rearranged with order. There can be multiple items…