Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Using Jquery how do I find an element by id using a regular expression

I'm using PHP8.1 and JQuery. I have a script with several links that each have an id that is a digit only. i.e: <a href="#" id="<?= $id ?>"><?= $student_name ?>&...
John Cowan's user avatar
  • 1,764
-6 votes
0 answers
80 views

Why date showing in wrong format in Javascript? [closed]

Here is my code: let dateStr = m.status?.match(/at (.* GMT)/)?.[1] || m.dateTimeGMT; // Parse it safely const dateObj = new Date(dateStr); // Options for human-readable format const options = { ...
NIFDO.COM's user avatar
3 votes
1 answer
96 views

clicking a button with JavaScript using a class and anchor text, rather than ID

I am trying - and failing - to write JavaScript to click this button: The HTML for the button varies depending on the page Example 1 from this page: <span class="a-button-text" aria-...
Sockie's user avatar
  • 309
1 vote
1 answer
93 views

Changing input from checkbox to button

I have a jsp file which results in this HTML: <form id="paymentForm" action="submit_payment.form" method="post"> <div class="notvalid"> </...
runnerpaul's user avatar
  • 7,558
-1 votes
0 answers
21 views

Print excel/pdf in jqgrid-php from an abstact grid

My project had too many grid pages and it was quite the mess so I decided to make one sole generic grid file with configurations and each time the same page loads different configs depending on the ...
Scarlet D.'s user avatar
-1 votes
0 answers
58 views

Is it possible to show error messages in nodejs, mysql and ejs combo without interacting with database [closed]

My question is about to show error messages in nodejs, mysql, ejs billing app, my concern is I am having form code which has submit action as "/addbill" and this addbill has already logic to ...
Sundar's user avatar
  • 7
9 votes
1 answer
752 views

Calculating distance to animate elements at the same speed

This is as much a math question as it is a coding question. Picture this scenario: ___________________ | | (#1) | Center ...
James H's user avatar
  • 93
1 vote
2 answers
88 views

How can I sync row order across multiple Data-tables without triggering infinite re-sorting?

I have four Data-tables tables on a page, each displaying different financial metrics about the same set of stocks. Each table shares a common Ticker column, and every table has the same number of ...
dawnkills's user avatar
-4 votes
0 answers
60 views

Use jquery to set hrefs or script src in a conditional way [duplicate]

To set an image's src to delay a loading of the source, you can do this with in the html <img src="#" delayedsrc="./imagesgeneral/iconhome.png" /> in the javascript $('img[...
Rewind's user avatar
  • 2,854
1 vote
1 answer
49 views

Trying to remove an item from a kendo combobox datasource in a for loop not working

I am trying to remove an item from a Kendo UI Combobox in a for loop but it won't remove the item from the Combobox. Any idea's on what the issue could be? Thanks Here is the code that I am using if (!...
Chris's user avatar
  • 3,181
2 votes
2 answers
105 views

Multiple selectors using variables for the selectors

My web table has two columns of cards (using flex). each column is in their own container. I have some JS (using jquery) that adds mouseover and mouseout handlers to the cards in column 1 which adds ...
Matt Ashfield's user avatar