Category "jquery"

javascript/jquery only affects first element

I have this html code for a search form and i would like to use jquery to edit the url to let searchform, searchurl, i; searchurl = window.location.href; s

Auto select first available options from a variation on WooCommerce variable products

I have a t-shirt product that has a choice of sizes and colours. After selecting of one variation I would like the first available option to be auto selected in

Multilayer parallax background

I'm looking to do a parallax effect like this. https://medium.com/@PatrykZabielski/how-to-make-multi-layered-parallax-illustration-with-css-javascript-2b56883c3

django-filter checkbox ajax

I am trying to implement django-filters + ajax(jquery) after sending the request, the selected checkboxes "disappear" I have little experience yet, tell me how

The auto generated error message shows the date format as 'yyyyy/mm/dd' instead of 'mm/dd/yyyyy in ASP.Net MVC application

I am working on ASP.Net MVC 4.7.2 app. It has a date field where user can select or type the date. If user enter the date with year yyyyy (the length of year is

Find Nth number of children using JavaScript and want to create Treeview

I have this array of hash and want to recursive this into treeview upto ParentTradeFairResourceId exist. I have tried but not succeeded to create an algorithm.

PHPExcel file download using AJAX call

I have a PHPExcel code which I use to export file, It works completely fine when i run it through normal static inputs but when tried with ajax calls the file i

PHPExcel file download using AJAX call

I have a PHPExcel code which I use to export file, It works completely fine when i run it through normal static inputs but when tried with ajax calls the file i

How print a loop inside of sweet alert window

I want to loop an array and show the result using sweet alert, I am new in this so I try the code below, but show me some like [object],[object] swal({ conte

HighStocks series does not show line on Black Colors

let code = Math.floor(Math.random() * 16777215).toString(16); if (code === "000000" || code === "ac132") { code = Math.f

jQuery: Wrap sibling divs of the same class with flexible selector

I'm looking to target all siblings of the same class name together into a container. In this HTML, <div class="pink"></div> <div class="pink">

How to make autoplay of the Swiper slider start only after the slider enters viewport?

I'm using this code to initialize swiper slider. var mySwiper = new Swiper ('.swiper-container', { // Optional parameters pagination: '.swiper-paginati

Click Function using AJAX Jquery Javascript

I am making a movie review web site as a project for school, and I want to put a click function on the image movie cover which will load the details and reviews

Owl Carousel 2, 8 items in two rows

Is it possible to make the Carousel in two rows? I want images like below: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 & in 1 page only 1

jQuery Timeout Function not working

I am working on a currently working on a dropdown menu using jQuery. I have run into an issue where the Timeout function is not working at all. The code for it

ReactJS reduce image file size without losing aspect ratio after user selects it in an input

I've been searching everywhere without luck. A simple way to reduce the width of an image picked with a simple <input type="file" /> without it losing it

How to prevent HTML forms being sent multiple times in a row within a short time period?

I'm using this simple form to implement a login: <form action="/handleLogin/" name="login" method="post"> <div> <label for="userid"&

getting image src in fabricjs

hi i am using fabric js for image resize and and drag and drop. now i want active object src . so i try like this way canvas.on('object:selected', function (

Slick : TypeError: b.$slides is null

I am trying to work out why the unslick method isn't working while using responsive breakpoints. <div id="skills" class="sectionWrapperInner"> <div&

disable button not working in jquery and ajax

I want to disable the submit button after the user clicks on the submit button in the HTML form. But form redirects directly to the next page without disabling