Skip to main content

All Questions

Tagged with
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 += ...
Saurabh's user avatar
  • 1,579
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", "&...
kait's user avatar
  • 335
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 ...
Venda 97's user avatar
  • 265
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 ...
Prasad Patel's user avatar
0 votes
1 answer
561 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 ...
арно нюм's user avatar
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'...
Sasha's user avatar
  • 8,627
-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
Vikas Rinvi's user avatar
  • 1,268
1 vote
1 answer
466 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 ...
Laurence MacNeill's user avatar
0 votes
1 answer
326 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: (...
M B Parvez's user avatar
-1 votes
4 answers
1k views

jQuery 3.3.1 - row is not added to tbody of a table using append()

I am trying to dynamically add a row to a table on the html upon a click event with JQuery 3.3.1 and Bootstrap 4. HTML: <table id='tblAddedCallsign' class='table table-striped'> </table> ...
alextc's user avatar
  • 3,416
0 votes
0 answers
1k views

Cannot read property 'ownerDocument' of undefined - while upgrading jquery

We are using jquery 1.11.1 four application and upgrading to jquery 3.3.1. For all the hyperlinks, on click facing "Cannot read property 'ownerDocument' of undefined". This is when I upgrade jquery UI ...
user7's user avatar
  • 515
0 votes
0 answers
81 views

Problem with variable 0 and jQuery $.getJSON as param

I think I found bug In latest jQuery 3.3.1. My problem looks like this - when I try to send index as number 0 or string 0 using getJSON function I doesn't get any response. Trying other numbers or ...
Grzegorz Miśkiewicz's user avatar
0 votes
1 answer
876 views

jQuery .on('load') works for one function, but not a different one

I'm starting from the ground up, developing a single page web app. I'm using some jQuery to create a loading screen, which is replaced with the web app after all the code is loaded. I'm trying to do ...
Julian Lachniet's user avatar
0 votes
1 answer
1k views

jQuery ajaxPrefilter fires after request is sent

According to the description of jQuery.ajaxPrefilter(), it's supposed to get fired before the request is sent to $.ajax(), but from what I'm seeing in my project, the server API endpoint gets called ...
Shahin Dohan's user avatar
  • 6,669
2 votes
2 answers
18k views

jquery 3.3.1 Uncaught TypeError: e.indexOf is not a function at w.fn.init.w.fn.load

<img class="my-foto" src="fashion-033-thumb.jpg" data-large="fashion-033.jpg"> <!-- Optional JavaScript --> <!-- <script src="jquery-1.8.2.min.js"></script> --> <...
Ammar's user avatar
  • 79

15 30 50 per page
1
2 3 4 5