Questions tagged [jquery]

jQuery is a JavaScript library, consider also adding the JavaScript tag. 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 need to be in the question.

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

How to apply css to jqgrid header column

I am drawing a table with jqgrid. I want to change the background color and text color of the header. I am trying to change the css by applying a class to the header, how can I apply it? I want it to ...
0
votes
0answers
4 views

Not Hitting Delete Route in Node / MongoDB

I'm building an app and have no issues with my get or post routes to work, but I'm hung up on this delete route. I've set up my front end javaScript like this. The first function receives the data and ...
0
votes
0answers
11 views

Trouble selecting drop-down menu selector using AJAX

Currently I'm trying to create a page where my database is updated upon a drop event. More specifically, I have a page with drag-drop capabilities, what I need is anytime I drag and drop a particular ...
0
votes
0answers
5 views

jquery: scroll to bottom after AJAX load

I am working on a messaging app and I am importing the conversation into the page with AJAX, so I am trying to find a way to have the div scrolled to the very bottom when the page loads. It is ...
0
votes
1answer
32 views

Wrapped span, hover effect

I have problem with hover option.. This is what I need (text in circle) Now, I got same look using csswrap After, I put some jQuery to add links all spans with same class All of that is fine, except ...
0
votes
0answers
15 views

Datatable delete emails action with ajax not catching data

Im trying to move from classic loading datatable to server side with the Ajax. Im struggling to 'delete' emails with this code bellow. After the click is not deleting any subscribers or emails. It ...
0
votes
1answer
15 views

Mention.js doesn't stop suggesting users

i wanted to test out something before i add it to my project , a twitter like mention user function from GitHub https://github.com/jakiestfu/Mention.js now the problem is the way his demo works is he ...
1
vote
0answers
17 views

how to change googleSuggest to use form text input instead of div acting as an input

I want to use Googles Suggest Autocomplete for a basic form <input type="text> instead of a DIV acting as a <input type="text> Example: HTML <form action="https://google....
0
votes
0answers
13 views

pass a value to a pop-up window Django

I have some some description and want get its in my pop-up window. Then I click on div with type button I must get value in pop-up <div class="content-wrapper bg-white"> <!-- ...
1
vote
0answers
14 views

Forwarding animation on ToggleClass

I´m trying to display a fullscreen menu with toggleClass animated with jquery. I´m able to do it, but I would like to to have the same effect forwardding the animation closing the menu. Any approach ...
0
votes
2answers
20 views

How to read and load data from local file when page loads

I would like to load local file data & populate that data while page loads. I tried to use this jquery function <script type="text/javascript"> jQuery(document).ready(function ($...
0
votes
2answers
15 views

jQuery - triggering two sequential click events more than once

When I first click on a box it enlarges and when I click it again it shrinks back to its original size. This applies for all the boxes. But when I click on a box that has gone through these two events ...
0
votes
1answer
35 views

Why won't my navbar toggle button work on my phone?

(I have no experience or knowledge about javascript or jQuery) I was making a navbar for my website and it was working fine on my laptop so I decided to check it on my phone too. When I opened my ...
0
votes
1answer
21 views

How to detect change in ajax when changing the values from the increase and decrease buttons?

When I change the input field values manually without the ajax buttons or the code detects the change and updates the data without any problem. The only problem that I present is with the increase and ...
1
vote
2answers
42 views

jQuery get length td match data attribute

I would like to get row count by data attribute, for example, data-engine with ami match 3, what method could possible to get count or length? Note: the data-engine value as ami come from a smarty ...
-1
votes
0answers
12 views

Why does my Owl carousel not work properly on Laravel 8?

I am trying to add an owl carousel in my project in Laravel 8, but it isn't working properly, it is displaying large pictures vertically, in columns, full screen width. I've been stuck for a while now....
0
votes
1answer
24 views

onclick radio button change form fields

I have two radio button like: Field_One Field_Two When I check Field_One it will show First_Name, Last_Name field but when I check Field_Two it will show reference_id field. But one thing if this ...
0
votes
0answers
5 views

I have a form with an httppostedfile that i want to submit through jquery. The httppostedfile submitted value is null

here is my html code where i have a form taking some input from the user and the user uploading a file: <div class="modal fade" id="CreateCompanyModal"> <div class="...
0
votes
1answer
19 views

How to appropriately wrap callback functions from jquery load() in Promises, so I can use await Promise.all? [duplicate]

I feel like there must be a simple, searchable answer to this, but try as I might, I am unable to find the solution to this simple problem. I am new to Promises and callbacks, so I am probably using ...
0
votes
0answers
13 views

Keep a tab open when page reload

I'm working on a woocommerce website, I inserted my cart page in a tab that opens on the product page with some gsap animation if ($(this).hasClass("menu-open")) { $(this).toggleClass(&...
-1
votes
0answers
12 views

booking an appointment using imacros

I'm trying to book an appointement using iMacros , and I don't know how to make it stop when the appointement is available so I can fill the form! I hope you can help me! here is the website: https://...
0
votes
0answers
13 views

HTML Bootstrap 5 Responsive Table - Fixed first column

I have worked with responsive tables with search. But I want first column fixed. I saw this example in bootstrap 4. Here is the link: Bootstrap4 Responsive Table - Fixed first column But in this ...
-2
votes
0answers
25 views

Model updated in controller but not updated in Ajax callback

Being a newbie in asp and jquery, I have a question regarding how data is updated from the controller to the view. In my controller I change the value of a boolean to true; update the model and return ...
0
votes
1answer
18 views

My online video reader is not working. Any suggestions?

My HTML code is not working for some reason. My HTML Consist's of: <input type="file" id="upload" accept=".mp4,.webm, .mov"/><br> <video id="video&...
1
vote
1answer
35 views

how to get new lines by copying html as text in another div

pls place cursor at the and of lorem ipsum then hit Enter - new line then write - dolor result in divb is - <div>lorem ipsum</div><div>dolor</div> how to get the following in ...
1
vote
0answers
15 views

Parsing html with cheerio

I used cheerio for the first time today This is a simplified version of the html source I want. <div id="country-table"> <!-- div duplicate cause style --> <div> &...
0
votes
0answers
11 views

jsPDF jQuery.Deferred exception: r[o] is undefined

I am trying to use jsPDF to download a PDF version of my website. I am getting this error jQuery.Deferred exception: r[o] is undefined. I think it has to do with "var source = $("#content&...
0
votes
1answer
38 views

Show the Value on form real time - app script

i need help on the web app form. im faceing issue how to show the value real time on webapp form. i right code.gs but im unbale to create javascript for run the function interval level. please help me ...
1
vote
0answers
22 views

I am having a problem where my single Ajax get call is being repeated every on every page loads

I wrote logic to read the txt file on every 30 mins from Ajax script(Separate ASP) . This ASP is included on multiple ASP pages by using "Include" .. this html code contains the below logic.....
0
votes
1answer
37 views

Adding icons to image on click

I'm creating a project where when you click on an image, a pin should be placed on that exact location. It needs to work on different screen sizes/browsers etc. I've sampled some code from other ...
0
votes
0answers
13 views

How to use Phpmailer in multiple if-else statements?

I have a piece of code and there are multiple if-else statements. I have tried using PHPMailer in each of the if-else statements repeatedly. But I get an error message that - Cannot redeclare ...
0
votes
0answers
13 views

Call an .Net MVC method on tab/browser close

As a part of my MVC web application, I need to call a controller method when a browser or a browser tab is closed. I am using the Javascript onbeforeunload event for calling the method. window....
1
vote
0answers
14 views

Create new fields in a ROW created early by user

I have created a form in which the user enters the number of fields he wants to create (for example, he enters the number 20 and then the system displays 20 fields) Then I would like each field to ...
0
votes
0answers
11 views

how to read md file in JavaScript from root

My project has the following structure: --dist --plugins --import_json.js --index.html --json_file.md --import_json.js var forum_data = null; var data = null; $(function () { $('input[type=...
-1
votes
1answer
29 views

How to load a google search result inside a div?

I'm trying to load google results in side a div in same page. I'm using the code below, <style> #result-here { width: 400px; height: 400px; border: 2px solid #000; } </style&...
0
votes
1answer
37 views

How do I simplify this update function array code?

I have update array function I want to simplify this code if possible. This update function is about updating and comparing the value of array. The data will be compared inside the fruit_temp example ...
0
votes
1answer
16 views

Creating a slideshow with varying lengths of time between slides

I have a fairly simple slideshow written in jquery that fades between div elements. In the code below it's set to fade between slides every 5 seconds. Is there a way I can modify this so I can set ...
1
vote
1answer
24 views

How to refresh a page in jquery file after updating certain values?

I have populated a table from database using php and updating its values using js(ajax jquery) Record updates perfectly, I am calling page reload function to get updated values but reload() function ...
-1
votes
0answers
12 views

On click submit button add value of all dynamic accordion items in c#.net core [closed]

I am looking for a solution once click on Submit button the all the dynamic accordion items should be send to controller.
0
votes
2answers
37 views

Make a dropdown selection according to the selected div (with jQuery)

I have these divs (links) that can be clicked on. I want to change a dropdown selection accordingly. So if it's clicked on select2, it would change the dropdown value to 666 If select3, it would ...
0
votes
1answer
28 views

Python request works, ajax not

I have working requests code in python and need it in ajax var jsonData = {"x":"y"}; $.ajax({ url: url, type: 'POST', data: jsonData, //dataType: "JSON", ...
0
votes
0answers
12 views

What should I Use to get an animation for div which flies from left/right to center of my page when I scroll to an element or refresh the page? Sass

I want something like from animations.css animate__lightSpeedInRight when I refresh a page or scroll to a section and get a nice animation then. I use Sass and dont know what to use. Animations.css , ...
0
votes
1answer
35 views

how to remove a specific css from a div without adding an inline style?

clicking on the button I need to remove the following css setting from #tg: .wrap div{ text-align:justify; text-align-last:left; } and add a acenter class - i.e. making it aligned center #tgx.should ...
-2
votes
0answers
36 views

Javascript Close Modal: add / remove list class random

i have list button modal as: <div class="modal_list"> <button class="btn_modal_1" onclick="" data-toggle="modal" data-target="#btn1">Button 1</button> ... <button class="...
1
vote
1answer
31 views

How to I display video in left and right column in append without duplicating it?

I have video channel that I want to display all the the related video in that page. I displayed it from left to the right. But now I got problem with the same data appear twice left and right in one ...
2
votes
1answer
41 views

Detect a word and addClass to body

The jQuery below detects the word first and third in any <p> text and adds a yellow or red background to it. $(document).ready(function(){ $("p:contains(first)").css("background-...
0
votes
1answer
35 views

Change color of specific characters in contenteditable div whilst inputting data

Hello! And thank you for taking the time in reading this, and apologies that it is this long. TL;DR at the bottom. What I am trying to accomplish: What I wish to accomplish is to be able to change ...
-1
votes
1answer
25 views

Modal is not opening on passing url parameter [closed]

I am trying to open up a modal upon passing the parameter "del" with value. Example URL: .../notification.php?del=32 But it is not working. Can you guys help me to run it? I have included ...
0
votes
0answers
24 views

How to add PHPmailer in if else statement and send email through it with a button click?

I have an HTML table and in one of its cells, there is a button to Accept food orders. That data is then checked by another PHP page if it's ok or not and then the data is updated accordingly. Below ...
0
votes
0answers
20 views

Mobile version of DataTables will causes jQuery to stop working

I'm using DataTables (https://datatables.net) When trying the mobile version of the website the jquery will stop working, But when using the desktop version everything works just fine. <link rel=&...

1
2 3 4 5
20424