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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

How to count a single specific tile in a grid with divs having the same class

We want to count the grid tiles like in the bottom example, but in a more efficient way. like if we want to add 100 grid tiles instead of 9 HTML: <!DOCTYPE html> <html lang="en"> ...
cutiedark's user avatar
0 votes
0 answers
4 views

ASP.Net Core localized date format validation not working

I'm using the data-val-required to replace the standard message for required field and get a french custom message displayed and it works well. I'm also using the data-val-date attribute to do the ...
Stephane Belzile's user avatar
0 votes
0 answers
17 views

How to disable submit button while submitting with addEventListener(submit)? [duplicate]

Everything is said. I spent hour figuring out how to do that simple thing. I can disable this button before the listener (it exists) Here is my code, can you find what is wrong : f = document....
Francois's user avatar
0 votes
0 answers
57 views

Toggle between three different classes

I am trying to toggle between three different classes. When each "button" is selected it then creates a row and displays information and hides any information displayed by a different toggle....
blindkayster's user avatar
-2 votes
1 answer
27 views

How to open Bootstrap 5 Modal instantly and then load the AJAX content

The Bootstrap 5 Modal does not open until the AJAX Content is loaded. It's a bad UX for my users as users have to wait few seconds for the modal to open after clicking the View button! So having said ...
user3362364's user avatar
-2 votes
0 answers
60 views

How Fliter a JSON with multiple condition inside the filter function JS

let Json = [{"CarrierCode":"QR","FlightNumber":"1585802512","ScheduledDate":"21/08/2023","ScheduledTime":"02:50:00",&...
Sabareesh's user avatar
  • 117
0 votes
0 answers
34 views

Error during serialization or deserialization using the JSON JavaScriptSerializer?

I am posting data using ajax call to my .net MVC controller when my data is small like base64string is 100 kb then all works fine but when I have base64string 2mb or 3mb then ajax directly goes in ...
M Јǚйáĩď's user avatar
-3 votes
0 answers
44 views

Why jQuery add quotation marks? [closed]

jQuery absolutely unclear add some quotation marks. There is ajax request to the server, which returns Html code... When I doing append this code, jQuery absolutely unclear add some quotation marks. ...
HimselfProducer's user avatar
0 votes
1 answer
14 views

filter option not showing for dynamic dataTable in asp.net core razor pages

I have a page, which displays customer names with attendance details. I have displayed the attendance details inside a modal-pop up. The data are displayed inside a modal pop up using jquery ...
Teena's user avatar
  • 161
0 votes
1 answer
49 views

how to control browser reload event

I am working on a Training Management System. I want to notify my students before page reloading on exam. Like if a student wants to reload the page after starting an exam, he will get an alert(sweet ...
Mainul Islam's user avatar
2 votes
3 answers
91 views

How to apply CSS to a parent element if only a certain child element exists? [duplicate]

Is there a way to use CSS to apply styles to a parent element only if the parent has a certain child element? Here is my HTML: <div class="Environment"> <div class="col-md-...
Pete's user avatar
  • 21
1 vote
1 answer
24 views

Jquery / Add Class If same Data-Attribute Value is in Viewport

markup: <div class="content" data-id="XX"></div> <div class="media" data-id="XX"></div> <div class="content" data-id="...
tuxedo's user avatar
  • 43
0 votes
0 answers
16 views

SB Admin 2 sidebar not displayed active class background color for new item added and dashboard is always active by default

enter image description here if I added a new item as Projects and clicked then it's not active with the different background color. By default always Dashboard is active. I have successfully ...
K-T's user avatar
  • 1
1 vote
1 answer
38 views

How to change the current row values?

The below code retrieves the current row and makes changes to the first of four values ([0] being the first value). I've used console.log which displays the output but I want the changes to occur for ...
oooo's user avatar
  • 21
0 votes
1 answer
57 views

How do I prevent the default submission of forms loaded via Ajax in this Laravel 8 app?

I have made a blogging application in Laravel 8. I am currently working on adding comment replies via jQuery (v3.5.0) AJAX. In comment-form.blade.php I have: <div class="form-wrapper"> ...
Razvan Zamfir's user avatar
0 votes
0 answers
36 views

Generate dynamic column using server side code response

This is my Server side code and its response $response = array( "draw" => intval($draw), "iTotalRecords" => $records, "iTotalDisplayRecords" => $...
Rohit Kashyap's user avatar
-2 votes
0 answers
22 views

I want javascript to trigger specific dom element only in jquery

I am working for a image with i in toprightmost when clicked covers the picture and shows a text and when clicked again get normal for which I can working with css but I see suitable jQuery code that ...
0 votes
1 answer
37 views

after adding html blocks using ajax, animation(jquery) does not work

if you add this block forcibly, then everything works. my searches led me to the fact that when clicking on input, the focused is-focused classes are not added to it. 1 screenshot - how it works if ...
Artem's user avatar
  • 13
-1 votes
0 answers
12 views

Problemas com o Z-index (Eu acho) [closed]

Bem, eu estou tendo um certo problema com a barra de navegaçao, ela esta flutante e fixa e com um z-index alto pois precisa estar sempre presente, mas dessa forma n consigo interagir com outros ...
Artur Batista Chagas's user avatar
0 votes
0 answers
40 views

An issue with Ajax to add or remove class with php

The problem that has arisen is that completely randomly and after I toggle some notes to get the done or pending theme, some of them do not show the class change. For example, the first one turns from ...
Suron koly's user avatar
1 vote
1 answer
40 views

Undo Java Script onclick function after resizing window

I'm trying to make content display on click but ONLY under a screen width of 700px. If the user presses the button and resizes their window, the content disappears. Basically, my code looks something ...
Lucy's user avatar
  • 21
-5 votes
2 answers
54 views

JQuery Grab Element That's Loaded Dynamically [closed]

I have a div that's loaded dynamically <div id="box"></div> I'm trying to grab the div using jQuery and add text to it $("#box").text("Hello World"); But I'm ...
shane's user avatar
  • 29
0 votes
1 answer
50 views

How to cut 1 image into 9 smaller ones like a grid

I have one image on top of another and with a click on a grid tile it disappears and shows a part of the second image. I have 2 images, one as a .main_container background and the other one I have in ...
Žan Čahuk's user avatar
-2 votes
0 answers
32 views

How to create multi-step form with server side validation [closed]

I want to create a multi-step form with server side validation in ASP.NET Core. So that if the information entered in each step is incorrect, the user cannot go to the next step. How can I do this? ...
kourosh's user avatar
0 votes
0 answers
19 views

how to write algorithm for image movement on stack centred image carousel? [closed]

wanted to create stack centred image carousel using js and css on the first click the output is proper but on the second click everything is a mess const totalSlide = images.length; let slideIndex = ...
Sanjan Athyady's user avatar
0 votes
0 answers
23 views

JavaScript code is not working in angular .ts file

**this is my HTML Code ** <section class="funfactSection"> <div class="container"> <div class="row"> <div class="col ...
Pawan Nayak's user avatar
0 votes
0 answers
20 views

Enable to add anchor link in dropdown option in select2 Version 4.0.x

I need to add the link tag inside the dropdown options tag, I've already found the blogs, but it only works with 3.x.x version. How do I make a link open in an option https://forums.select2.org/t/how-...
jishan siddique's user avatar
0 votes
1 answer
51 views

How to set dark mode to turn on automatically based on time?

The current theme toggling solution is as follows ... let themeToggler = document.getElementById('theme-toggler'); themeToggler.onclick = () => { themeToggler.classList.toggle('fa-sun'); ...
PREM's user avatar
  • 1
0 votes
0 answers
24 views

How can I detect if datatable columns are currently being re-ordered

I am scraping products data from amazon, and I add a row each time a product is scraped. But when I am re-ordering and at the same time a row is being added, I get a "column number is not the ...
Mehdi's user avatar
  • 115
-1 votes
0 answers
31 views

Insert Jquery Inside Statement in PHP [closed]

i want to add an if statement in php. the program snippet that I made is like this <?php if ($active_lists != 0 && jQuery("#list_news").css('display') == 'none') { // ...
AW Soft's user avatar
-4 votes
0 answers
21 views

Why my button functionality is not work continously? [closed]

Please check to run this html and js jQuery(document).ready(function() { var elements = document.querySelectorAll('.collection-description'); if (elements.length) { elements[0].id = '...
Muhammad Saqib's user avatar
0 votes
0 answers
36 views

Altenative to max-height 0% for folding elements

I have a table like in this mockup: https://jsfiddle.net/sungi/3L4nw2hj/12/ It's programatically created based on external data, so I can't tell how many elements there will be in each row. I have ...
Sungi's user avatar
  • 1
0 votes
0 answers
13 views

In WP 6.4.1 where is Ajax.googleapis.com called from?

In Wordpress 6.4.1 it appears that the most recent version of jQuery (3.7.1) is included in wp-includes>js>jquery. But my site is showing that the front end is loading 1.12.4 and it is ...
CJ Catalano's user avatar
-1 votes
0 answers
46 views

Show alert if selected option is already selected in dropdown

In dropdown list option if selected one option such as optionA then click on plus/add button new row is added of dropdown list, than select optionB than click add button new row added now if again we ...
Preeti sheoran's user avatar
0 votes
0 answers
17 views

Checkmarx security vulnerability tool has detected Client_DOM_Stored_Code_Injection vulnerability in jquery 3.5.1 min.js How do we resolve this risk

Checkmarx security vulnerability tool has detected Client_DOM_Stored_Code_Injection vulnerability in jquery 3.5.1 min.js How do we resolve this risk. The method o), embeds untrusted data in generated ...
World of Titans's user avatar
-1 votes
0 answers
31 views

javascript - display iframe json response as textarea?

i am calling an iframe in php page, this iframe will take speech and giving the result in json format on success like {"text": "hi how are you hurry"} need to implement this in ...
B. Khan's user avatar
-3 votes
1 answer
57 views

One Datepicker value automatically in second datepicker?

I have a form having two fields of Calendar/Datepicker.. Field No.1 <div class="input-group date" id="gnd_institutiondate"> <input id="...
Saima Mushtaq's user avatar
-2 votes
1 answer
56 views

JS Session Time Not working if the Tab Is not focus of My web SIte Page

When my tab is not focused the session timer stops. I want it to run if my site is open in the browser. Any solution? function startTimer() { timeLimitInSeconds--; var minutes = Math.floor(...
Kunal Hinduja's user avatar
0 votes
1 answer
38 views

Open modal / offcanvas with a single button click

I want to open my favorites sidebar with a single click on my keyboard. So when pressing "f" I want the sidebar modal to open. Now it opens like this: <a href="#" data-bs-toggle=...
Hardist's user avatar
  • 1,828
0 votes
0 answers
18 views

Modify razor page table and update database using jquery

I have a MVC project and I get the data from my view from a viewModel. I try to come up with a solution for my specific case for some time, but nothing seems to work. In short, I want a table that has ...
T_MAC_1's user avatar
  • 23
0 votes
0 answers
32 views

Select all shadow root elements of multiple elements [duplicate]

I have these elements and I want to select all sc-product-item inside of each sc-product-item-list <sc-product-item-list class="hydrated" id="selector-1> #shadow-root (open) &...
mrmoon97's user avatar
-2 votes
0 answers
36 views

Error 404 in CodeIgniter Version 3 system [closed]

I'm trying to create a rating star to evaluate a store, I used ChatGPT, apparently the code is correct, but whenever I click on the send button (submit), it gives me a 404 error in the console. I can'...
Victor Martins's user avatar
0 votes
0 answers
13 views

reading a div content from the main page when a modal is open

I have a modal window that opens up when i click a link on the main page. on clicking a link in the modal window i want to read a particular divs content from the main page into the modal text area I ...
Apurva's user avatar
  • 493
0 votes
1 answer
23 views

i have error in iframe contents html getiing

i am trying to get iframe html but returning undefined why? <html> <head> <script src="https://code.jquery.com/jquery-3.7.1.js"></script> </head> <body&...
Sukrat's user avatar
  • 1
0 votes
0 answers
15 views

How to add an event in FullCalendar?

In my FullCalendar, the time is displayed at the top, and there are several resource columns created. If I remove these resources, events are created, but if I add at least one resource, nothing ...
Ammon Jerro's user avatar
0 votes
0 answers
14 views

e-commerce website individualized profiles

I'm creating an e-commerce website for local businesses here, where in my admin panel i can add a new business or store, and the store owner can access his admin page and start adding products of his ...
Dr.Jamal's user avatar
1 vote
1 answer
44 views

how to parse a query in Wordpress using JQuery

The JS code below parses the title and content in category.php but I'm unable to parse the conference_speaker_business which is displayed using the PHP code. Basically, I would like to parse and show ...
user3362364's user avatar
0 votes
0 answers
20 views

Extract ckeditor text to a new div - javascript

I use CKEditor for get some text. I also want to show how it is seen with mobile. So I created mobile screen. This is my ClassicEditor ClassicEditor .create(document.querySelector('#kuran')...
Mehmet Ali's user avatar
1 vote
1 answer
32 views

How to prevent click on outside of polygons in Leaflet map js?

We have multiple arrays of lat long, ( here 3 arrays are stored in success_content_mapareas ) Accordingly, we have created the map and it looks like this, which seems okay in the image below. We need ...
Mark Tendly's user avatar
1 vote
0 answers
34 views

Slick Slider renders image poorly in IOS

My Slick JS code ids below.... but is there anything I can add to the script in Slick Slider to possibly solve this weird rendering problem? It's a simple implementation of the Slick Slider, 6 images ...
RKwasi's user avatar
  • 11

1
2 3 4 5
20694