Category "jquery"

Use a class as a selector for particles.js

I have the following code which adds particles.js to a element by its id (fixed-back-canvas) but I can't seem to set it to select a class rather than id. Adding

Can't load existing files using the jquery-filupload examples

I am using the code provided by the blueimp jquery-file-upload site from the basic-plus demo example. I have modified it enough to fit my requirements and works

How to get latest version of Jquery through Jquery-rails in rails application

I am trying to fix the CVE's related to jquery as follows. So for that I am trying to consume latest version of jquery. Earlier I had //= require jquery in ap

Javascript and JQuery not working properly in my website project

Js and jquery are not working properly, the menu-toggle button does not work in responsive mode. the carousel (using slick) is not working properly in full page

Get values in JSON object from html input text and label

I have a HTML by which currently getting the values of input elements in loop in an array. But now I want this in json object with its label. Below is my html

How to reset a date in Firefox input[type=date]?

Firefox v57.0.1 supports the attribute "date" for the HTML input tag. I would like in jQuery to reset the date value when the user click on a radio button like

Insert And Retrieve Data in MySQL with $.post Noob Question

Trying to insert data into MySQL database with PHP. I don't want to refresh the page. The data isn't inserted when I press the Send Message button, but the data

How do I display number of selected items in checkbox?

How do I display the number of selected items? I've tried different ways to count the checkbox but it did not count the items when I click "select all". I want

Simple custom sorting function for jQuery DataTables

Numeric sorting is not working on my dataset. So I made a custom sorting that converts whole string into number then sorts based on that, but for some reasons i

Stop swiper slide autoplay on mouse enter and start autoplay on mouse leave

How to stop swiper slide autoplay on mouse enter and start autoplay on mouse leave? I have tried .stopAutoplay() and .startAutoplay() function but not worked fo

searching multiple Object Value in another Object JavaScript

I have 2 array of object in that, I want to compare all of the first array object property and value present in the second array of object. (at the object level

searching multiple Object Value in another Object JavaScript

I have 2 array of object in that, I want to compare all of the first array object property and value present in the second array of object. (at the object level

How can I validate the file type selected from an input element of type file

I am trying to allow users to upload an image by using the html below <input class="file-upload" id="imagepath" name="imagepath" type="file" accept="image/x

How to access environment variables with vanilla javascript

I have an index.html and I need to pass some sensitive information to some JavaScript variables. This index.html contains plain javascript with jquery so I am s

Is there a way to reorder "div" elements ,into a descending order, in the DOM according to their content with the onclick of a button?

I am trying to reorder the "divs" (pushed into the DOM via Javascript) with the onclick of a button. Specifically, I'm looking for a Javascript function to reac

Find index of element within a list of elements with the same class

I have a div: <div class="container"> <div class="info" style="display:block;"></div> <div class="result-image-slides"></div&

How convert input type="date" in a timestamp?

I need to convert an <input type="date"> value in a timestamp. This is my HTML code: <input type="date" name="date_end" id="date_end"> This field

jQuery Ajax Web API call returns 401 unauthorized error when set only Windows authentication in IIS

We have our Web API hosted in IIS with only Windows authentication. We are calling that API from our Angular project and it is working fine. Now we are creatin

How to not hide my form element after submission if its css display style was set to none previously

$(()=>{ $("#c").click(function loop(event){ $("#a").show(1000).submit(function(event){ if ($("#b").val() === "hello"){

QuaggaJs: Browser compatibility issue for barcode scanner

I am using QuaggaJs to scan the barcode. Everything is good and smooth for desktop version of scanner. But it gets broken when coming to mobile version of websi