Skip to main content

Questions tagged [jquery]

jQuery is a JavaScript library. jQuery is a popular cross-browser JavaScript library that facilitates Document Object Model (DOM) traversal, event handling, animations, and AJAX interactions by minimizing the discrepancies across browsers. A question tagged jQuery should be related to jQuery, so jQuery should be used by the code in question, and at least jQuery usage-related elements must be in the question. Consider also adding the JavaScript tag.

jquery
0 votes
1 answer
49 views

how to add different layer options

I have a samll script that allows you to add a "shades" layer to any uploaded image and then save it. Currently you can only add one style of shades. I need help figuring out how to add ...
MGuccie's user avatar
0 votes
0 answers
46 views

Why is the selected value not retained?

I have an MVC application where a user can add and delete to their schedule. Each time they do, it refreshes so the previously selected dropdown goes back to the first option. How do I get it to ...
littlelion111's user avatar
0 votes
2 answers
83 views

How to update a table and refresh the partial view

I am using ASP.NET MVC and have a HomeController, model, and view. I am trying to create a search filter, where the user can type in some characters, click submit, and filter a table (in a partial ...
Calvin's user avatar
  • 17
0 votes
1 answer
43 views

Bootstrap5 Toggle No Event Response With jQuery.Clone(True)

I enjoy the practicality of Bootstrap5 Toggle plugin. The purpose of plugin provide user the option to toggle from one Module A to Module B. Each line item is wrap under DIV class .lineitem-wrapper. ...
Nathan DevX's user avatar
0 votes
0 answers
33 views

Woocommerce - Menu button slideToggle speed not being applied

I'm making a custom menu for mobile and am trying to get a search bar to slide up when the menu button is clicked. I've pretty much managed to get it working using a combinaiton of Add Search Toggle ...
JapeNZ's user avatar
  • 103
1 vote
0 answers
31 views

ASP .NET MVC app restarts after SignalR websocket crashes

My question is twofold. One is, why does the entire server crashes after SignalR websocket crashes and why does SignalR websocket crashes. .Net framework 4.8 ASP.NET SignalR JavaScript Library 2.4.3 ...
Kristóf Horváth's user avatar
0 votes
0 answers
27 views

Get folder path instead of 'fakepath' [duplicate]

I need to place two text fields and two buttons. The first one uses a dialog to select the file name and place it in the textbox. The second selects the folder with which the user will work and places ...
User220321's user avatar
0 votes
0 answers
34 views

How can I hide button in customize step in step form

this is my script that manage a stepform movement: (function ($) { "use strict" var form = $("#step-form-horizontal"); form.children('div').steps({ headerTag: &...
Maryam12 forex's user avatar
0 votes
1 answer
33 views

How to Override Default Title Handling in Magnific Popup with Custom HTML Content?

I’m using Magnific Popup to create a gallery of images with custom titles that include HTML content, but I’m encountering an issue where the popup consistently uses the default title attribute’s value ...
sofies's user avatar
  • 3
0 votes
0 answers
50 views

How do I fix this CORS problem, when doing a simple get request with JQuery Ajax?

I'm trying to make a website that triggers a webhook to trigger an Alexa Routine using https://trigger.esp8266-server.de/. The request goes through fine and it works fine, but in the console, it's ...
Grantie's user avatar
  • 11
-1 votes
1 answer
59 views

JQuery refusing to send mail after an element ID click event

I have this form MyForm.html <form id="MyForm" ENCTYPE="application/x-www-form-urlencoded" class="form form-horizontal" autocomplete="off"> <fieldset&...
Jared's user avatar
  • 3
1 vote
0 answers
38 views

How do I get the value for a color picker in R Shiny?

In my Shiny app I am trying to get the value from a color picker. Using shinyjs::onevent I can get and put the value in the input control but when I am pressing the save button (which triggers the ...
polchemon1's user avatar
1 vote
1 answer
29 views

Images display the same url as the first, when it should display dynamically (Simple jQuery)

I'm trying to make the src attribute of each image converted into an href, I'm almost there, but only the first image is displayed in the href link of the others, when each one should display its own ...
Filipe Souza's user avatar
0 votes
1 answer
39 views

Is it incorrect to add the same JQuery Validate rule twice to a dynamic field and is it detrimental?

I have a large number of dynamic cloned fields on a form. The fields are cloned groups. Every time I add a clone I use a wildcard selector to allocate the rules to all the fields in the DOM. $(...
arresteddevelopment's user avatar
0 votes
2 answers
40 views

Collapsiable menu close all except target, when it open in jQuery

This is the HTML structure of my sidebar menu. Submenu is a collapsible menu. <ul class="block-navigation" id="sidebar-navigation"> <li class="navigation-item has-...
user3733831's user avatar
  • 2,940
3 votes
1 answer
73 views

Add to cart multiple variations via JQuery and Ajax in WooCommerce

I'm using add_to_cart method to add a variation to cart with Ajax, this works but I can't find a way to add multiple variations using the same request. If I send one_data it works, but not with ...
Becker Armata's user avatar
2 votes
1 answer
43 views

Add to cart a product variation via JQuery and Ajax in WooCommerce

I am Unable to add a product variation to cart using jQuery and Ajax. With the code below, the parent variable product is added, but not the variation. For example, I specified one of T-shirt ...
Becker Armata's user avatar
-1 votes
2 answers
45 views

How to Pass a Clicked On Element ID to jQuery Function To Do Something With Another Element?

How can you pass the ID of an element that is clicked on to manipulate another corresponding element, without having to write a jQuery function for every single one? So.... Let's say that I have a ...
Soren's user avatar
  • 813
0 votes
0 answers
12 views

Devbridge Autocomplete ignores serviceURL and returns self instead

Trying to implement a simple devbridge autocomplete which uses a .php file to query MySQL: $("#theories").devbridgeAutocomplete({ serviceURL: 'theorySearch.php', ...
KenBotwinick's user avatar
0 votes
0 answers
31 views

How to insert variable in to HTML ediotr (QUILL or any) with javascript/jquery

I am using Quill editor, and i want to insert some pre define text with other text that will be changed dynamicly at the time send email using that content. Example HI contact_name, Details: ...
Niranjan Dev Sharma's user avatar
0 votes
1 answer
36 views

Can't get Facebook to update OG:Image data for link embeds

My brother in law has a simple website for his small business, and he has requested that I change the image for the embed when the site is shared on Facebook. Everything looked fine when I checked it ...
Naddison's user avatar
-1 votes
0 answers
83 views

Radio button attribute "checked" not working

This is a truly bizarre issue. When submitting a PHP form, I keep getting the "undefined array key" error. This is happening because the radio button, although you can visually see it is ...
Andrew Rout's user avatar
0 votes
0 answers
20 views

MVC Input Type Date Cannot Default Today's Date

I new to MVC Bootstrap 5 and am struggled to set the default date on the form with a datepicker calendar. I have this HTML: <input type="text" class="datepicker" value="@...
Milacay's user avatar
  • 1,475
0 votes
0 answers
57 views

How to offset navbar hide on scroll while hero section is visible?

I have a simple function that hides the navbar when the user scrolls down the page, and shows it again when scrolling up. I would like to offset this, so it is effectively disabled while the hero ...
marklovin's user avatar
0 votes
1 answer
28 views

How can I integrate pagination with the filter table function?

I have implemented a table with pagination and a filter function using jQuery. The pagination works fine, and the filter function successfully filters the table rows based on the input value. However, ...
haroun's user avatar
  • 124
-1 votes
2 answers
39 views

JQuery .append(): Add <strong> inside <p>

I'm trying to render this dynamically using jQuery .append() : <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" ...
GH DevOps's user avatar
  • 357
1 vote
2 answers
55 views

How can I make request to a Laravel route without refreshing the entire page?

I have this link in a specific section of the homepage. When clicking on this link, it calls the "forbest" route, which in turn calls the "Home" function from the controller. The ...
Mohammed azan's user avatar
2 votes
1 answer
33 views

Datatable- How to custom sort one column by defferent values every times from rendered html element

Let's assume the cell of the Datatable are rendered like this: columnDefs: [ { targets: 0, type: 'percent', render: function (data, ...
Web Star's user avatar
  • 432
0 votes
0 answers
21 views

How to handle HTML element interaction prior to jquery's document ready

I'm building a website using jQuery 3.7.1. It has 5 radio buttons and each radio button has a corresponding text input. I want each text input to be enabled only when its radio button is selected. The ...
nonagon's user avatar
  • 3,441
0 votes
2 answers
26 views

How to get the *rendered* width of element with javascript/jquery? All methods tried yielded only intrinsic width

I have a slider with a html like this <div id="bilder"> | height: 70vh; <div id="pappediv"> | height: 100%; <div id="slider&...
Dominik Lenné's user avatar
0 votes
1 answer
43 views

kendo ui confirm dialog box in jsp file jquery

I have a jsp file. I need to add confirm dialog box when user clicks on delete button currently script has simple confirm, but i want kendo ui confirm box. I am not sure how confirm box is in jsp file....
Adil's user avatar
  • 29
-1 votes
1 answer
59 views

I want to send data using ajax when the value comes out in jsp

The value comes out from jsp. However, I don't know how to send the value as ajax data. I tried to print the jsp value and change it, but it failed. What should I do? What should I put in the data in ...
seullbee Lee's user avatar
0 votes
1 answer
41 views

remove multiples rows from datatable based on their respective indexes in jquery

I want to remove some rows from datatable based on their respective indexes.The indexes are in form of an array. Upon clicking a button the function gets the array and finds each of them in the ...
Steve Djvoskill Waweru's user avatar
-1 votes
1 answer
45 views

double click function can't get the option selected in jQuery

I create two selectors. When I double click one option in a selector, the value selected will show in another selector. Suddenly, it doesn't work. I double click one option in the left selector that ...
kikily liu's user avatar
0 votes
1 answer
40 views

Trouble posting contents of file input to controller action using jquery in ASP.Net Core 6.0

I am attempting to post a file to a controller action in order to save it, and have run into two different problems, when using $.post to post the data as shown here: $("#setting-form").on(&...
Na...'s user avatar
  • 21
0 votes
0 answers
33 views

Select2 does not show my selected data on the screen

I'm stuck on a problem and I was wondering if you could help me. I have an ASP .NET MVC system, and I have a widget screen with the function of editing a widget. The call to edit a widget is in a ...
Jeferson Carlos's user avatar
0 votes
0 answers
22 views

Jquery error on the ScriptResource.axd file

In my aspx page there is textbox to do search which have onkeyup event.Onkeyp event method is get called but Whenever type text on that textbox, get the below jquery error on the page. I am not sure ...
Sabbu's user avatar
  • 179
0 votes
1 answer
41 views

Changing the CSS class of a specific record field in React

I have a table of text boxes and want a given text box to highlight when I change it. I have the CSS class but am not able to apply it to a specific field. Currently the setChanged() makes the ...
John's user avatar
  • 417
1 vote
3 answers
49 views

jQuery().html() containing script tag with type="module" including external js file

When I try to set div content with jQuery("#some-div").html("<app-bysquare>Bla bla bla</app-bysquare><script>alert("OK");<\/script>");, then the ...
theoneiam's user avatar
0 votes
0 answers
10 views

I am trying to use jQuery 4 in webpack but I keep getting errors

I am trying to make a node js project the uses jQuery but my webpack config keeps sending errors. I tried to research but even if the syntax looks right I still get errors. The errors are all based on ...
Auz's user avatar
  • 1
-2 votes
0 answers
37 views

How to filter duplicate records from JSON array? [duplicate]

Quick overview The site allows you to read the bible online and visitors can highlight verses (apply a yellow background to the verse) by clicking on the verse. When the verse is highlighted, the book,...
Andrew Rout's user avatar
0 votes
0 answers
12 views

Ckeditor: "CKEDITOR.instances" returning undefined and setData returning error

Instances undefined Hello, i have two CKEDITORS in my form, included by: @include('components.ckeditor', ['name' => 'obs_completo', 'descricao' => $produto ? $produto->descricao : old('...
ricardo tulio's user avatar
1 vote
1 answer
30 views

Trouble appending obj to local storage - Jquery

Trying to accomplish: The website is an online Bible; I'd like to allow users to do the following.... Allow user to highlight (add yellow background to text) a verse by clicking on it. They can ...
Andrew Rout's user avatar
-2 votes
0 answers
65 views

Cannot select option from select input that use select2 js

I am using Select2 JS (https://select2.org/) with Laravel Blade, including the option to load data via AJAX. The select inputs for Location, Category, Tag, and Author are functioning correctly. The ...
Md.Tahmid Farzan's user avatar
1 vote
0 answers
29 views

window.addEventListener('scroll', function() {

I'm working on the front end through Django WebFramework and PyCham, but infinite scrolls are not properly applied It is a page that fetches and displays public data APIs. Even if the scroll is stuck ...
haenshi's user avatar
  • 13
0 votes
1 answer
45 views

Fullcalendar not showing Json Data

I want to display dates based on project dates from Quotation data that have deal status in my database. and I use fullcalendar as the UI. however my script fails to display the json data sent by my ...
Jester Amadeus's user avatar
0 votes
0 answers
59 views

Worng jquery conversion when p tag contains a table tag

I have this HTML text: <p> <span> <table> <tbody> <tr> <td> <figure></figure> </td> &...
Paolo Mosna's user avatar
2 votes
2 answers
43 views

dynamically create treeview dropdown - $(this) not working with click event

I am trying to dynamically create this bootstrap 4 dropdown (see answer by @Gerhard Gotz). The hard coded list works for me, however, I am trying to dynamically create this list and then populate it. ...
Samra's user avatar
  • 1,965
-1 votes
1 answer
73 views

What is the difference between manually extracting data and using a GET vs POST request with jquery AJAX?

I've developed a website using Python Flask, which includes a form with two dropdowns and a slider. I'm looking to retrieve the selected values from these form elements and send them to the python ...
user25533071's user avatar
0 votes
1 answer
69 views

Updating the text box value via an OnChange event

I'm displaying and populating (from a data source) a set of records. But I am not able to change the values in the fields. Is the OnChange event set incorrectly? This is before any form submission - ...
John's user avatar
  • 417

15 30 50 per page
1
3 4
5
6 7
20760