Category "jquery"

Qualtrics programming question (using javascript to create a bipolar slider)

I need to use bipolar sliders for a series of questions in Qualtrics. I saw some code on the Qualtrics community website to help get a label on the right hand s

Append Options tag to a modal using JQuery

I have a modal that I am appending based on user selection. Here is the code: var options = { 'option1': {'display': 'Series A', 'optionsB': {'name': 'John', 'c

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 movemen

Jquery Form validation for select2 multiple [duplicate]

I have form in which I have field courses with multi select option. Also there are more than 2courses field in form like below :- name="course

How to mock jquery global $ with jasmine typescript?

I want to test a method in a service that uses the global $ as jquery reference like this: CLASSES_TO_FIND = ['highlight', 'normal']; fetchHighlightedTags():

Dropdown menu code not quite right on mobile

I have built a menu on this page that is live: https://boys-cry.com/ and it was working fine until I added the mobile background content on a different section

How to post data to API in jQuery DataTable ajax?

Hi all I am using jQuery DataTable and performing server-side pagination and sorting. I am stuck at one place, I am having API that is of type POST, so I need t

Problem with jQuery when using chrome extensions popup

There is a website and there is a button that has the disabled tag. I'm trying to write a popup extension where there is a button, by clicking on which this tag

Datatable with form on multipage validation issue

I have created table using datatable with in each row have td with input or select field. with having on multiple pages. The issues is the datatable render 10 r

How do you move data from one cell in one row of a web grid to another cell in another row that is empty using jQuery?

I am kind of lost when it comes to jQuery sometimes, though I know there is a way! How do you update or move three cells data to another row based on the rows i

Why does jQuery or a DOM method such as getElementById not find the element?

What are the possible reasons for document.getElementById, $("#id") or any other DOM method / jQuery selector not finding the elements? Example problems include

Circle drawn in Openlayers not changing properly

I have a JS file that allows me to draw a circle on an interactive made with Openlayers 4.6.5. The problem I currently have is that once the circle is drawn, I

I want to show validations messages on popover if there is multiple conditions then it not updating popover content

I want to show validations messages on popover if there is multiple conditions then it not updating popover content. In this form there is 2 field first name an

How to make back to the top anchor link smooth scroll

i'm trying to make the back to the top button on click to be smooth scrolling but i'm stuck.. at the moment this code works but its not smooth scrolling to the

How do I disable wc-cart-fragments without console error?

I have a client who does merchandise 'drops' where they receive a lot of traffic. In order to limit some of the excess load on the server I am disabling AJAX wc

use response data in columndef datatable jquery

I am using datatable jquery.I want to use Sr_no in data-id of td tag but How to get data of Sr_no. or you can say that I want particular data from data reponse

Trim mobile numbers in textarea field

I have a textarea field in a form where I can copy paste (or type) mobile numbers. It will have one number per line, like this I can copy paste (or type) thousa

Embed HTML5 YouTube video without iframe?

Is it possible to embed an html5 version of a youtube video without using an iframe?

How to determine the winner in a race?

I have created a program that places several nodes (which act as animals) on the screen; they're supposed to race eachother. Animal.js is the parent object of t

Ajax undefined value in PHP

When I call the function I always get an undefined value, I don't understand what can ruin it. You are logged in as undefined, Error undefined Ajax script: fu