14 questions from the last 30 days
0
votes
1
answer
42
views
Issue with select2 and option group
I am adding a new option to a select2 optiongroup with custom drawing of options. here is my code:
function defaultParameter(value, defaultValue) {
return typeof value !== 'undefined' ? value : ...
1
vote
1
answer
52
views
jquery each function works just on first item
I use this lightweight plugin to display text continuation on hover :
https://lukifer.github.io/HoverForMore.js/
I am using the jQuery each function to call all items and run this plugin on each one, ...
Advice
0
votes
2
replies
33
views
Is it possible to use the dataset content values in my script?
I'm trying to use dataset content in my Javascript, but I can't get it to work. Is this even possible or has the content run too late? The values are being output in console correctly.
// JavaScript ...
0
votes
1
answer
35
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 ?>&...
3
votes
1
answer
101
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-...
-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 ...
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 ...