Skip to main content

All Questions

Tagged with or
-4 votes
1 answer
31 views

In a WordPress page editor HTML block I have: <script> jQuery(document).ready(function() { jQuery('.wp-block-button__link').addClass('sg-popup-id-2331'); }); </script> However, ...
Steve's user avatar
  • 1,899
0 votes
0 answers
100 views

I have a webpage where I want to get multiple instances of the same JQuery-powered gallery tool. The first instance works just fine; all the individul items are clickable, the arrows work, and moving ...
Cri86-Titanium's user avatar
-6 votes
2 answers
124 views

I am trying to submit a form and validating data using jquery by calling preventDefault() when it's incorrect. After addressing the validation error, what I want is to submit the form when the submit ...
user32516169's user avatar
-2 votes
0 answers
81 views

I have written a 1 page letters game in HTML/JS/CSS. I am using jQuery. Part of the game is to drag a letter tile (<div>s) across the board over another tile, and the 2 tiles change place. The ...
Calvin's user avatar
  • 5
Advice
0 votes
1 replies
34 views

I have this button that toggles it's text from "Show more..." to "Show less..." whenever it's clicked: <button class="btn btn-sm btn-secondary" title="...
Boycott A.I.'s user avatar
  • 18.9k
Best practices
1 vote
7 replies
115 views

I am removing inline JS from HTML files due to CSP in an existing project, so this old code: <input value="Click here" type="submit" name="submitA" onclick="...
David Balažic's user avatar
Advice
1 vote
23 replies
292 views

I have a quiz with 5 questions with a couple of answers you can choose from each, it's always single choice, so you will have 5 variables in the end, one per question q1="",q2="", ....
user avatar
Advice
1 vote
17 replies
207 views

I am passionate about writing a personality/psychology/dating website. I know how to use variables a bit, but I don't know which is the best way to store them. There are cookies, sessionstorage and ...
user avatar
1 vote
0 answers
89 views

I am trying to add lightGallery v1.10 into a Laravel project with Vite. The following is my bootstrap.js file: import $ from 'jquery'; import jQuery from 'jquery'; window.$ = $; window.jQuery = ...
Zhiyong Li's user avatar
0 votes
3 answers
75 views

I am using jquery.validation in an ASP.NET MVC form and would like to disable the submit button when jquery.validation passes and form actually submits. The validation triggers in the background (I am ...
tshunter105's user avatar
Advice
0 votes
6 replies
74 views

I am trying to display the updated length of the input username by a user. I know that we can use .change() shorthand but it updates after the span has lost focus. I want something to update it ...
Ankit Raj's user avatar
1 vote
2 answers
69 views

I have many accordion elements that are added by an ajax function. When the elemet is created in ajax i call the function: $( ".accordion" ).accordion({ active: false, collapsible: true, ...
Ro Bo's user avatar
  • 43
Advice
2 votes
1 replies
199 views

I am trying to make a fully customisable home page for the user. The idea is for it to be like OBS. You can add or remove windows to your home page, and you can resize them so each window takes up the ...
Sakura De Francesco's user avatar
0 votes
0 answers
24 views

I am using leaflet.js to create a map and add a select box to the map. That works, but the change event, which used to work, does not work anymore. I start by creating the two objects that I need, the ...
Jim's user avatar
  • 133
1 vote
1 answer
106 views

I am struggling to move a span from a sibling div to the previous one - I think my syntax is not quite as it needs to be… it works in that it moves the span to the location I need, BUT - as I have ...
dubbs's user avatar
  • 1,233

15 30 50 per page
1
2 3 4 5
68947