Category "jquery"

How to show alert on browser back button click event using jquery

I want to show alert while clicking on the back button in the browser. it only works before clicking on the back button, when you click to somewhere else on the

HTML Javascript image slider - adding slide animation/

I made an image slider that work, but now I'm trying to add an animation effect to it, and I believe JavaScript may be the answer for that. I'm trying to add th

How to take div value through parent elements using jquery?

I need to take the text "UNIT01". How I can do this using JQuery or JS? `<div id="unit"> <ul class="choices"> <li> <div>UNIT01&l

How to Replace Copied Text from A wordpress website to Custom text

I have a wordpress website. I try to come up with solutions to protect my website from being copied. I try to know, is it possible to Replace Copied Text from A

Upload a empty folder with js or jquery

hello there I am building a folder upload system with js and PHP but I got an issue I'm not able to upload a folder that not contains any files I use <in

How to ScrollLeft 50% and ScrollTop using jQuery [duplicate]

I have the solution. I noticed new trainees find it difficult to implement some functionality at times. Strongly not for ratings but for educa

jQuery check all checkboxes in table

I have a table with a checkbox in the table head which I want to use to check/uncheck all the checkboxes in my table. This is my code, but it doesn't work.

ERROR:jQuery.verto.init is not a function

I'm using a Verto library in my nodejs console based project - I've added all necessary references to main.js file - something like this: const jsdom = require(

Prompt login via saved google account

I know how to integrate "Login via google account" in any website. But in some website like zomato always prompt "login via google" account while opening. It sh

How to get indexOf proper className of targeted element? [closed]

I have an target element which is a SVG which has two properties baseVal and aniVal, So I'm trying to get the proper indexOf the className fro

Swiper slider: slide change to other div

I have created a parallax slider but I have one big problem with changing the slider. I can change the slider when my mouse is inside the blue zone As you coul

How do I fix the POST 405 error for an email form (PHP) hosted on http-server?

I am new to PHP and jQuery. I wanted to test the functionality for the email contact form in PHP that I call from my jQuery file. I have been filling in the det

Bootstrap Select Editable Combobox Hack

How can I let my users add their own options to bootstrap-select? Hello. After spending some time trying to find a simple solution that works with bootstrap 4 s

How to change tag name of all html elements which is selected by class name? dynamically

strong text .my-p{ display: inline; } .my-div {} .my-bold{ font-weight: 900; } <!DOCTYPE html> <html> <head> </head> <

Prevent swiping on mobile screen to trigger the links

I have a dropdown that works on hover on PC and on click on Mobile. I noticed a problem when i use a phone. If i swipe over the submenu links to reach one bello

How to automatically close fancybox 4 popup after x seconds?

I have a web page page.html with this fancybox4 link <a href="link.html" data-fancybox data-type="iframe" data-width="80%" data-height="25%" > I would cl

How to insert price based on checkbox checked

I have a form where I calculate the price based on the checkboxes checked. But I am having trouble as its not updating the final price correctly. I did some jQu

Kendo UI Upload Error not firing when adding an invalid file type

For some reason or another, when I add an invalid file extension the error event isn't happening. Did I overlook something? $(document).ready(() => { I

Scroll to next or previous elements

I have a scroller that contains max 3 elements and has down arrow to go down to next elements and up arrow to go back to previous elements but i'm having troubl

How to save activities for user HTML/JavaScript/jQuery

I made favorite buttons and if user clicks on it, it will save specific favorited item to a different page with LocalStorage. Code works perfectly but now I wan