Questions tagged [jquery-3]
New features of jQuery 3.0 or changes in behaviour from jQuery 2.x to jQuery 3.x. Always use together with the [jquery] tag.
jquery-3
91
questions
1
vote
4
answers
62
views
Check if textbox exist in table cell or not
Here is my code:
var result = '';
var rows = $("#table_wf tbody tr input[type='checkbox']:checked").closest('tr');
for (var i = 0; i < rows.length; i++) {
var row = rows[i]
result += ...
0
votes
1
answer
66
views
Set attribute with an empty string
I'm trying to toggle the required attribute on fields using jQuery. On page load I add the required attribute to the relevant elements:
$("[data-required]").attr("required", "&...
9
votes
1
answer
11k
views
Async/Await with JQuery document READY
It works with document.addEventListener("DOMContentLoaded", async () => {}) but I am curious of making it work with JQuery.
And also, I want with Async/Await, not promises because later I ...
0
votes
1
answer
294
views
jquery 3.0.0 upgrade broke html table functonality
We are upgrading jquery from 1.8.2 to 3.0.0 in a legacy project which have many plugin.
We are using migrate plugin for ease of up-gradation ,it not showing any error in console except couple of ...
0
votes
2
answers
1k
views
$.trim().val is not a function
I am working on updating jQuery version of our applications from jquery version 1.7 to 3.6 so, I am facing issue with 'trim' method. we have used trim method like in old jQuery version but it has ...
0
votes
1
answer
111
views
Hi, I am using Drupal 9 and on a request in network tab jQuery 3.5.1 sends another contextual render call. Any reason of this call?
I am using Drupal 9 and on a request in network tab jQuery 3.5.1 sends another contextual render call. Any reason of this call?
0
votes
1
answer
556
views
Run inline jQuery after jQuery-library is fully loaded at the bottom of the document?
I have a big inline jQuery function that I want to trigger after the jQuery library is loaded at the bottom. Otherwise I'd get the "Uncaught ReferenceError". Therefore I wrapped the function ...
0
votes
3
answers
1k
views
Retrieve Json Data as a IEnumerable
Goal:
Send a json data with many data from frontend to backend.
Problem:
When I send the data to the backend i do not retrieve it as a IEnumerable
What part of the code am I missing?
Info:
*Using ...
0
votes
0
answers
56
views
Javascript, Jquery 3 - Run get request before anything else
At the beginning of the file I have the following code:
$.get(
"/users/getInfo",
"json"
).done(function(data){
window.User = data
})
import './components/map'
import './components/search'...
-1
votes
1
answer
84
views
Laravel nav bar toggle not working on the bootstrap 4.4.1 and jquery 3.3
Using bootstrap 4.0.0 and jquery 3.3.
Navbar toggle not working and saying
Uncaught TypeError: Cannot convert object to primitive value
1
vote
2
answers
788
views
jQuery ajax call can't read json encoded data from CakePHP 3.8 (gets an empty array)
I have a weird problem with reading json encoded data returned by my CakePHP3 API in response to an ajax call from jQuery. I have already read over 20 posts on stackoverflow and elsewhere and the ...
1
vote
1
answer
465
views
Is there an alternative to ImageMapster that works with jQuery 3.x?
I've been trying all afternoon to get ImageMapster to work... I kept getting the weirdest errors, and all the Google searching in the world didn't help... (Stuff like "Uncaught TypeError: i.size is ...
0
votes
2
answers
1k
views
jQuery change event being fired twice
I have a form with input fields including a date.
Below is my code;
<form action="/test/" method="get" class="form-horizontal">
<!-- truncated codes -->
<label class="col-sm-1 ...
0
votes
1
answer
100
views
Carousel control not working in bootstrap version 4
I am using bootstrap version 4. But My Carousel control is not working. Am I missing any thing?
Same below code is working perfectly fine If i change version to 3.4
Please help me here.
PFB are JS ...
0
votes
1
answer
325
views
AJAX function inside $.extend not working in jQuery 3
I need to extends jQuery (as a plugin). Problem is, $.ajax is not working inside the $.extend scope but outside the scope it is working fine. I am using jQuery 3.4.1 in my project.
My code:
(...