1,034,276 questions
0
votes
1
answer
37
views
how to use lightGallery v1.10 with vite and Laravel 12?
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 = ...
-6
votes
1
answer
62
views
How do you re-initialize an <input type="file" name="photos[]"> using javascript/jQuery? [closed]
Definition of "file" element:
<input type="file" id="photos" name="photos[]" class="form-control mt-4 row-gap" multiple>
-2
votes
1
answer
51
views
Remove href value from anchor [closed]
I've tried:
jQuery('.gutentor-post-title a').removeAttr('href');
jQuery('.author.vcard a').removeAttr('href');
jQuery('.posted-on a').removeAttr('href');
on https://omega.dev.eggdesign....
0
votes
1
answer
49
views
Disable Submit button *after* jquery.validation
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 ...
Advice
0
votes
6
replies
67
views
I want to know if there exist a shorthand for .on() -> 'input' in jQuery
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 ...
1
vote
2
answers
64
views
Jquery accordion : how to call only once
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, ...
Advice
2
votes
1
replies
191
views
How do I make fully customisable home page for user
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 ...
0
votes
0
answers
21
views
Triggering Change Event in Leaflet and jQuery [duplicate]
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 ...
1
vote
1
answer
73
views
Moving div to a sibling div
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 ...
-1
votes
1
answer
26
views
jQuery Validate Package Detect If Find Address Button Clicked
I have a postcode lookup field and in my jQuery Validate I am trying to add a method that checks if the input has a value, but the select (list of addresses) is not displayed, then display an error on ...
Best practices
1
vote
3
replies
88
views
Tracking GTM real login/registration form conversion (not button click) - same GA4 ID on prod & preprod, AJAX form, no thank-you page
I'm working on a GTM implementation to track successful login and account
registration conversions on a client's customer peprod portal.
One important constraint I discovered after joining the project:...
3
votes
1
answer
122
views
Why is my Div moving to the right on mouseup?
I'm trying to animate an image move to the middle of the screen, zoom in, and become fixed when pressed, and then go back to where it was before when let go. However, the height and width are not ...
0
votes
1
answer
70
views
How to convert HTML content into its constituent entities in jQuery?
There is a div containing a bunch of HTML:
<div id='thediv'>
<p>Hello</p>
</div>
We want, on a certain event in jQuery 3.7.1, to have the contents of that div turned into ...
-5
votes
2
answers
133
views
How can I update a Json record in Dom for each person, when their unique id is there twice, but under two different dates?
How can I update a JSON the record in the DOM for each person, when their unique id is there twice, but under two different dates.
I am making a weekly work rota. John, James, Helen, Susan etc. I ...
1
vote
2
answers
66
views
Checkboxes Array Retaining UnChecked Checkboxes When Form is Submiited
I'm using PHP8.1 and HTML. I have a form with checkboxes, which are fed dynamically from a MySQL database table. When I uncheck a checkbox and submit the form, the unchecked checkbox is still seen in ...