Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 answers
32 views

Jquery/HTML: Empty new line <textarea> is not preserved in <pre> with text() [duplicate]

When I take the value of a textarea with jQuery and put that in a <pre> with .text(), it does not preserve the last empty new line. If I put it in another textarea with .val(), it does preserve ...
Paul's user avatar
  • 51
1 vote
1 answer
47 views

Multiple accordions working independently where the first of every accordion is open [duplicate]

I'm using this accordion module from W3Schools: https://codepen.io/SupposedlySam/details/oWWgqZ It's working well, only a problem occurs when i use two of them on the page. They still work. Only they ...
Jelle's user avatar
  • 39
2 votes
1 answer
84 views

Some required attributes are not validated while using form and javascript

I'm using a form for issues with mandatory fields but some aren't taken into account. Of the 6 required input blocks only 4 are correctly validated when you try to submit the form. The 'IVR status' ...
NiteOwls's user avatar
  • 309
0 votes
1 answer
30 views

Issues Implementing AJAX Autocomplete in WordPress Admin with Select2

I'm trying to implement an autocomplete feature in my WordPress admin area using Select2 and AJAX. However, I'm having trouble getting the AJAX requests to work correctly. PHP Code to Handle the AJAX ...
Matteo Didonè's user avatar
0 votes
1 answer
63 views
+50

Passing two parameters (IFormFile and a string) with JSON to C#

Versions: ASP.NET and Web Tools - 17.10.341.11210 C# Tools - 4.10.0-3.24312.19+ JQuery - 3.3.1.js JS - 2.8.3.js I'm trying to pass an IFormFile and a string from a JSON file select and a string input. ...
Kevin Fischer's user avatar
0 votes
0 answers
9 views

jQuery Monthly Calendar Recommendations?

Can anyone recommend a basic calendar plugin? I'll plan to use Ajax to load events. When the public clicks on an event, a window needs to appear with details.
Jon's user avatar
  • 105
0 votes
1 answer
47 views

How can I establish attribution control on click event with Leaflet?

I have a Leaflet map with 2 layers. I would like to be able to trigger an action on $('.attributionLink').click(), but the click only registers when layer1 (default) is active. After changing active ...
pwalk's user avatar
  • 1
-3 votes
0 answers
30 views

how to autofill wordpress checkout page inputs from data from db [closed]

I have a problem with auto filling the inputs , I succussed in get data from db and log it into browser too, but my real problem is that once I change the value of inputs using js or jQuery it just (...
muhammed Amr's user avatar
0 votes
0 answers
30 views

Salutations not getting removed within jQuery statement [duplicate]

I'm new to jQuery, but can't understand where I'm going wrong I have a text field for a full name with ID "class_name" I have a text field for a generated username with ID "class_add&...
Aaron van de Ven's user avatar
0 votes
0 answers
26 views

Opening a jQuery sweetdropdown via method

I am trying to open a popup via the method: $('#dropdown-standard').sweetDropdown('show'); But this is not working. Nothing happens. Original code (https://sweet-dropdown.adepto.as/): <div class=&...
Brecht272727's user avatar
0 votes
0 answers
34 views

Croppie Library Not Cropping the same image as the viewport

I have used the Croppie library to crop an image, with the viewport set to 225 x 225 pixels. Below is the code I wrote for this functionality: $(document).ready(function() { var $imageCrop; ...
Biraj Dahal's user avatar
1 vote
0 answers
23 views

Why does scrollLeft produce a positive number at direction:rtl

In touchscreen mode, set the attribute direction:rtl; At this point I manipulate the content of a piece of the overflow dom element to get the distance that the horizontal scrollbar scrolls. According ...
xiaosunLin's user avatar
-2 votes
1 answer
42 views

Ajax is not working without refreshing the page [closed]

Ajax is not working without refreshig the page to make it work.I am coding an ecommerce website in django and need to show quantity of products in the cart but it dont show quantity without refresh ...
Mohi's user avatar
  • 3
1 vote
1 answer
55 views

automatically loop through radio buttons but also be able to manually switch

I'm trying to iterate through radio buttons automatically every 5 seconds via jquery; however i need the function to also run when i manually switch buttons. Here's what I have so far: $(document)....
amy's user avatar
  • 85
-5 votes
1 answer
40 views

There's no delay as soon as the screen stops I want the code to run [closed]

The above code fetches a .json file and displays the data in an HTML file. Currently, the work is done by fetching the data from the <script>. The current issue is that the initially placed ...
ddd2dd2 vvccfff's user avatar

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