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.
jquery
1,034,393
questions
-1
votes
0
answers
18
views
Return $.get data to main scope [duplicate]
I am trying to use the variables that I set within my $.get function outside of the function itself.
Here is the $.get:
$.get("process/getTotalSales.php", function (data) {
var obj = JSON....
0
votes
0
answers
15
views
run js after shopify collection page sort/filter
i am using js to alter each item's info after the page loads. however, when a collection is sorted and the items are reloaded the effect is removed. the sort function is not included in the API and ...
0
votes
0
answers
17
views
Custom Dropdown input automatic search behavior in Woocommerce Wordpress
I have 2 custom made dropdowns in Woocommerce, that act as filters for products, one including all brands in the site, the second all level 2 categories. They have an automatic tigger search function ...
-1
votes
0
answers
28
views
label text not in array AND checkbox checked
I'm trying to change the color of label texts when their texts do not match values in an array, but only when their associated checkboxes are checked. I'm matching multiple label texts against values ...
0
votes
0
answers
28
views
Bootstrap 5 navbar dropdown with submenu and hyperlink
In my bootstrap navbar the dropdown have submenus and the submenus also have submenus along with hyperlink.
When I am using in desktop the dropdown is showing the submenus on hover but in mobile it ...
2
votes
1
answer
26
views
Manage concurrent users per single subscription
I am implementing a functionality in which user can take one subscription &** maximum 10 account can be created per single subscription but only 3 concurrent users are allowed**.
I am using ...
0
votes
2
answers
64
views
How to Increment the value of a cell in a table by 1 using JavaScript?
I am developing a point of sale system. Using Javascript, the below code can add a row to my shopping table. However, with button, I can add duplicates of stock to shopping table. So I am considering ...
0
votes
0
answers
19
views
How to use Geocoder Autocomplete API of the new HERE Platform?
I'm currently having a confusion about why hitting this endpoint :
https://autocomplete.geocoder.ls.hereapi.com/6.2/suggest.json?apiKey={API_KEY}
results in a 403 http status code. And I'm sure the ...
1
vote
1
answer
29
views
Not able to send zip file from nodejs express backend to jquery frontend for automatic download
i have a few files in a folder, want them to be downloaded at client side when a button is clicked, so i zip them using adm-zip which works fine
following is my backend code
const zip = new AdmZip();
...
0
votes
1
answer
16
views
How to Show Hide tag Image When one of Owl Carousel item active?
I have an issue to show and hide image, it's not working. How to if the owl-carousel active item that has id="img-dark" will show img id="dark" div and hide img id="light"...
0
votes
0
answers
19
views
Isotope trigger by passing parameter
Hi below is my script but its not working
$(window).load(function() {
var hash = window.location.hash.substr(1);
var buttonFilter = '.'+hash;
$('button#'+hash).addClass('is-checked'); ...
1
vote
1
answer
40
views
Using alias from before() in a it() test
In this example on the website, they say there is a simple way to use data you create in before() or beforeEach() in a testcase it(). But when I tried it it said my this.variable was undefined. After ...
0
votes
1
answer
17
views
Problem with cascading dropdown in Asp.net core mvc
I m implementing Student Information System. In Student class (Id, Name, CurrentGradeId, CurrentClassroomId and other info). Want to implement cascading dropdown are grade and classroom.
Here Problem!
...
1
vote
1
answer
47
views
how to save changes even user refersh page in jQuery
I had a button that change page theme to dark-mode. when you click on, it works but when refershing the page, changes will be not save. pls help me to fix that🙏🏻
html:
<div class="container&...
-2
votes
0
answers
45
views
Remove attribute from an element with a keypress jQuery [closed]
When a user is focused on a heading in the example below and presses the down arrow key, I want it to remove the "inert" attribute from the section directly below it (not all sections), and ...
-1
votes
1
answer
25
views
Update Dom With Result from Ajax with Action Event Not Working
I'm Developing a Comment Replay System As any Social Media website But Using YII2 Framework
I Created Wedget To Show a list of Comments On Some Items ( like products )
Each Comment is With button &...
1
vote
0
answers
32
views
Select2 unslected options
I am using select2 with pagination to load more data from db when user scroll the drop down, the issue i am facing is when i select all the records and then i unselect some record then some of them ...
1
vote
1
answer
27
views
I am getting a typeError in javascript : formhandler is not a cosntructor
i am trying to learn frontend development from a book called Front-end Web Development : Big Nerd Ranch Guide , I am copy/pasting code book into my computer but today i got a error that one of my ...
0
votes
0
answers
8
views
issue with Rich Text editor
Hi I have one issue with Rich Text editor,
when enter some text with some color( say red color ) + Bold + Italic then give one space and again select different color + bold then previous text color ...
-2
votes
0
answers
26
views
Jquery Datatable not working in the JSP file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="...
0
votes
0
answers
21
views
ckeditor addListToDropdown not showing label
editor.ui.componentFactory.add("InsertDropDown", locale => {
//const dropdown = createDropdown(locale);
const items = new Collection();
items.add({
type: 'button',...
0
votes
1
answer
53
views
How to set radio button values with dynamic values
<html>
<body>
<p>
<p>I like red:
<input type="radio" name="OptionChosen" id="100000000" value="yes" />
Yes
<input ...
3
votes
2
answers
62
views
How can I populate Textfield using php ajax in each row of a table upon change of another textfield within the row
I have a javascript where upon click of a button a row with two cells is added to the table. One cell has a livesearch textfield and the another cell has a quantity textfield, whose value suppose to ...
0
votes
2
answers
28
views
How to allow user to enter the date in datepicker input field in proper format
I am using jQuery datepicker to allow the user to select the dates.
var currentTime = new Date();
var startDateFrom = new Date(currentTime.getFullYear(),currentTime.getMonth()-2);
var ...
0
votes
0
answers
51
views
Issues with bootstrap-image-gallery.min.js and CSP headers in AngularJS project
I am using the bootstrap-image-gallery.min.js library in my AngularJS project. I have imported the library in my cshtml file, but I am facing issues with the modal popup. When the popup opens, the ...
0
votes
1
answer
42
views
Jquery popup open and closes all at the same time, need to make it independent
This is the popup
<div class="popup-overlay">
<div class="popup-content">
<button class="close">X</button>
<div>'.do_shortcode('[...
0
votes
1
answer
26
views
Parsing XML with JQuery & Javascript [closed]
I am attempting to parse XML to grab the value with delivery=streaming via Jquery and Javascript, and I am coming up short.
How can I do this with some Jquery code? I feel I'm so close, yet so far.
&...
0
votes
0
answers
44
views
Button icon not clickable
I am using Datatable in jquery to display data on grid along with some action buttons. I am using below render function to display the data, but when the page fully load, I am unable to click on the ...
0
votes
1
answer
17
views
fire a change handler when the user navigates away from the page
I've got a page with a bunch of text boxes where users enter hours for each day. The text boxes have an event handler that runs to save the data when it is changed. Using jQuery change(). The problem ...
-1
votes
1
answer
49
views
how to Pass a "click" event target to another function to manipulate a string [closed]
I am running into an issue where I am trying to get a click handler event.target.alt (a string) and passing that as a parameter in a function.
The function then will take it and splice it so I can do ...
0
votes
1
answer
29
views
Adding a RequiredFieldValidator causes the 'jquery' is not a valid script name. The name must end in '.js' error
I have a problem inside an asp net application where I get the 'jquery' is not a valid script name. The name must end in '.js' error when I try to add an asp:RequiredFieldValidator element inside an ...
0
votes
0
answers
27
views
How to get form values submitted over widget imbedded
The following script is the code i got from another service and i need to utilize submitted form fields elsewhere:
<script src="https://akiba-enterprise-widget-prod.web.app//Widget.js">...
0
votes
1
answer
29
views
How to animate or anchor bootstrap 4 accordion to its respective title when clicking its button?
Right now I have multiple script id's of #collapseTab2-1, #collapseTab2-2, #collapseTab2-3 etc.. to implement animate/anchor to its accordion title respectively when clicking its respective button ...
-3
votes
0
answers
47
views
Javascript is loading so many chats [closed]
hello this is chatbro loader basicly i try to make it day-night mode compatable for my website,but it loads 2 chats on page 1 white 1 black chat when i switch day/night mode it even loads more i just ...
0
votes
1
answer
65
views
Removing an attribute on keydown jQuery [duplicate]
Update: I've heavily edited this question because no one seemed to be grasping what I'm trying to accomplish. When a user is focused on a heading in the example below and presses the down arrow key, I ...
-1
votes
0
answers
28
views
Django Invalid JSON Response Syntax Error, possible jquery error
So I'll preface this question by stating I think the error could be in a few places though the most likely, especially according to the windows command prompt is SyntaxError: Invalid syntax on this ...
0
votes
0
answers
35
views
Iterate over HTML Table with column and row [closed]
I am looking for some insight to understand the easiest and best approach to iterate over an HTML table to update values.
My table will be time interval/Hours on the row level with different device ...
1
vote
1
answer
28
views
Edit checkbox the last deactivates the others
I'm editing a form that unfortunately comes out of the plugin like this and I can't edit html. I would like the last checkbox to deselect the other two fields if clicked. In my example it works ...
0
votes
0
answers
36
views
How to append a row to Google Sheets API? It's not working with Jquery: code 403 Unregistered callers
Here's the request URL format I am using currently:
postResURL = https://sheets.googleapis.com/v4/spreadsheets/${SHEET_ID}/values/Reserved!B2:D7:append?valueInputOption=RAW&key=${API_KEY}
Here is ...
0
votes
0
answers
24
views
Wordpress Select2 Ajax query call data from DB
I'm a beginner coding with JQuery Select2 and Ajax.
I'm trying to load dataset from DB into JQuery Select2 dropdown with search option.
This is the function for DB query and enqueue scripts in my ...
1
vote
1
answer
38
views
Mystery issue with switching classes jQuery
Got a nice little accordion going here which uses headings to expand and collapse content below. Everything works the way I want it to, except for one thing: when you expand a section by clicking on ...
0
votes
0
answers
12
views
Target only top level headings jQuery [duplicate]
OK, I have some code that looks like this, and I want to target only the headings which are inside a container, but not inside another container inside of it (if that makes sense). Currently it ...
0
votes
1
answer
39
views
Zoom pdf.js on mobile view browser
I created a pdf display on the web with pdf.js and it worked normally, the pdf appeared and I could click next and previous, but when the mobile pdf display became small, I couldn't change the ...
0
votes
1
answer
21
views
Using jquery-editable-select in a Django App
This is my very first Django app so please don't be too harsh :-)
I'm trying to use jquery-editable-select in my Django web App but I'm lost.
https://github.com/indrimuska/jquery-editable-select
...
1
vote
1
answer
41
views
CodeIgniter and Ajax: Dynamic Dependent Dropdown not working
I'm trying to create a Dynamic Dependent Dropdown via Ajax and CodeIgniter 4. However, I could not make it work. Can you help me figure out what's wrong? I'm trying to follow this tutorial online: ...
0
votes
1
answer
21
views
Applying an action only in the current container jQuery
Ok, so I know that given the following code, pressing the button in either div will change the background color of all divs with the class of "section" to yellow. My question is, how can I ...
0
votes
2
answers
36
views
Pagination with Dynamic Row Removal - Updating Pagination Links and Displayed Rows
I have implemented a pagination feature on a table in my HTML page. Each page should display three rows, and I have a total of eight rows in my table. Additionally, I have a button that removes rows ...
0
votes
2
answers
32
views
Getting the first element in multiple divs jQuery
Trying to apply css to the first element in multiple divs with the same class. In the example below, it works in the first div, but not the second one. What's wrong with this picture?
<script>
...
0
votes
1
answer
20
views
How can I modify all jQuery functions, which return object with DOM elements, to return additional data?
I'd like to modify all jQuery functions, which return object with DOM elements, with some additional data, so whenever I'd call jQuery functions, which return jQuery object with DOM elements, like $(...
0
votes
1
answer
50
views
Creating Custom Select at Run Time
I recreated my issue on Fiddle: https://jsfiddle.net/RayLove21/k05xhgaL/30/
This is the function I'm utilizing to append the custom select.
function CREATE_OPTION() {
var varForm = '<...