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
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
1 answer
295 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 ...
jasim's user avatar
  • 288
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
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
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
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
-1 votes
1 answer
248 views

Drupal 8 jQuery 3.3.1 Error: Syntax error, unrecognized expression: ul.nav &gt; li &gt; a error while applying the javascript

Newbee here. (plz refer this link: Change Bootstrap Active nav-pills tab border bottom shape to solid underline - i was trying to achieve this one) I tried to apply the js file for underlining the ...
Vivek22's user avatar
  • 862
2 votes
1 answer
98 views

jQuery click event on link won't get catched in vaniila JS

I am using the following Vanilla binding in order to simulate the jQuery delegation event: document.addEventListener('click', function(e) { console.log("some element was clicked"); console....
Alvaro's user avatar
  • 41.4k
1 vote
1 answer
891 views

jquery serialize yields an empty array

i am trying to use jquery serialize to pass some values from a form in an ajax post request to my server but the serialize function returns an array full of nulls, the values aren't serialized. i do ...
user605505's user avatar
0 votes
1 answer
1k views

Twitter Bootstrap v4 and jQuery 3.2.1

I'm trying to migrate to the new version of bootstrap and jQuery. Dropdown in example not working and console outputs error: > Syntax error, unrecognized expression: # This is my code: <...
Daria's user avatar
  • 357
0 votes
0 answers
36 views

How to delete a parent element [duplicate]

When a link is clicked it should delete its own parent. Here is the code I am using. Its not working. (function () { $(".delete-field").on("click", function () { var elementId = $(this)....
Luke101's user avatar
  • 64.6k
-1 votes
2 answers
286 views

jQuery 3.x .off() after .on()

I simply used .off() method after .on() method for .click() method. I'm really confused why click() event fires! $('span').on('click', function () { $('p').text("You Clicked!") }); $('span')....
SalmanShariati's user avatar
4 votes
0 answers
135 views

Debugging exceptions with jQuery 3.0

I recently upgraded from jQuery 2.4.1 to 3.2.1, and now I'm noticing that any exception that occurs during document ready handling (inside $(function() { ... })) instead of giving proper traceback and ...
riv's user avatar
  • 7,234

15 30 50 per page