Jquery

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 a jquery usage-related elements need to be in the question.

56 votes
6 answers
735 views
How to send a correct authorization header for basic authentication

I am trying to POST data from my API but I can't pass the basic authentication. I try: $.ajax({ type: &

avatar
Kristopher
0 1 0 9
asked 07 September, 2021
55 votes
1 answers
814 views
Items are overlapped in layout of category page in Joomla (due to container height attribute)

I'm developing a website using Joomla 3.2.1, K2 and creativia template. I've already done quite a lo

avatar
Freida
0 1 0 9
asked 07 September, 2021
56 votes
5 answers
1.1K views
Uncaught TypeError: Cannot read property 'nodeName' of undefined

this problem appears only in joomla - im trying to use the contentflow plugin with my joomla site this is t

avatar
Margo
0 1 0 9
asked 07 September, 2021
60 votes
7 answers
918 views
Drupal behaviors

What are Drupal behaviors at all? What type of service layer it offers to module developers? What type of rela

avatar
Gigi
0 1 0 9
asked 07 September, 2021
59 votes
9 answers
804 views
Correct way of using JQuery-Mobile/Phonegap together?

What is the correct way (to this date) to use JQuery Mobile and Phonegap together? Both frameworks need to lo

avatar
Bryan
0 1 0 9
asked 07 September, 2021
59 votes
18 answers
1.4K views
How do I add a simple jQuery script to WordPress?

I read the Codex and a few blog posts about using jQuery in WordPress, and its very frustrating. I've got

avatar
Suzan
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
1.9K views
TypeError: 'undefined' is not a function (evaluating '$(document)')

I'm using a WordPress site. I'm including this script in the header. When the script loads, I get th

avatar
Joseph
0 1 0 9
asked 07 September, 2021
59 votes
16 answers
1.8K views
TypeError: $ is not a function when calling jQuery function

I have a simple jQuery script in a WordPress plugin that is using a jQuery wrapper like this: $(document).rea

avatar
Hallie
0 1 0 9
asked 07 September, 2021
60 votes
3 answers
2.4K views
jQuery.ajax handling continue responses: "success:" vs ".done"?

I have been working with jQuery and AJAX for a few weeks now and I saw two different ways to 'continue&ap

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
61 votes
17 answers
2.4K views
Jquery - How to make $.post() use contentType=application/json?

I've noticed that when using $.post() in jquery that the default contentType is application/x-www-form-ur

avatar
Chaya
0 1 0 9
asked 07 September, 2021
66 votes
23 answers
2.9K views
jQuery $.ajax(), $.post sending "OPTIONS" as REQUEST_METHOD in Firefox

Having trouble with what I thought was a relatively simple jQuery plugin... The plugin should fetch data from

avatar
Deedee
0 1 0 9
asked 07 September, 2021
54 votes
11 answers
2.4K views
Why is jQuery's .ajax() method not sending my session cookie?

After logging in via $.ajax() to a site, I am trying to send a second $.ajax() request to that site - but when

avatar
Don
0 1 0 9
asked 07 September, 2021
55 votes
13 answers
2.1K views
Sending multipart/formdata with jQuery.ajax

I've got a problem sending a file to a serverside PHP-script using jQuery's ajax-function. It's

avatar
Robt
0 1 0 9
asked 07 September, 2021
53 votes
21 answers
2.2K views
jQuery Ajax error handling, show custom exception messages

Is there some way I can show custom exception messages as an alert in my jQuery AJAX error message? For examp

avatar
Cortez
0 1 0 9
asked 07 September, 2021
59 votes
11 answers
709 views
DataTables: Cannot read property 'length' of undefined

I understand this a popular issue, and I have read all the similar questions here on Stack Overflow and other

avatar
Freida
0 1 0 9
asked 07 September, 2021
64 votes
19 answers
1.2K views
How can I get the ID of an element using jQuery?

<div id="test"></div> <script> $(document).ready(function() { alert($('#test&apos

avatar
Charis
0 1 0 9
asked 07 September, 2021
62 votes
30 answers
2.1K views
How do I format a Microsoft JSON date?

I'm taking my first crack at Ajax with jQuery. I'm getting my data onto my page, but I'm having

avatar
Clarice
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
3K views
How can I select an element with multiple classes in jQuery?

I want to select all the elements that have the two classes a and b. <element class="a b"> So, only t

avatar
Virgil
0 1 0 9
asked 07 September, 2021