Category "jquery"

Convert multiple images to base 64 using single function

I'm working on a problem where I have to take three images as input from the user and have to send them to the backend by converting them into Base64. I know ho

Access php variables of a template with ajax

I know that this question has already been answered in other topics but for some reason it doesn't work for me and I don't understand why. I call a template wit

DateRange client side validation in ASP .NET6 using Fluent Validation

In my application I'm using a form to enter user information including birthdate. I want to perform both client-side and server-side validation and I'm using Fl

Lazy load images in a modal with a slider

I have a website that I am trying to optimize and one of the things that keeps coming back is I need to lazy load my larger images that I have inside a modal, t

Change bootstrap multiselect values based on another select options, using jquery

I have a simple form created using HTML and JS. There are 3 select elements that the options of the second and the third select elements are based on the first

Selecting div inside iframe with jQuery

I am trying to select a div inside an iframe with jQuery. But I can't get it to work. Any suggestions what could be the issue here? Parent HTML: <!DOCTYPE ht

How to Fix the TD elements of first column of the table body while the rows are scrolling?

The title is not clear, I know. Let me explain what I mean: First column has td elements which have varying rowspans. What I want is to keep the td text in firs

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