Skip to main content

All Questions

0 votes
0 answers
34 views

selecting a city doesn't populate the area dropdown in my subarea form in Laravel 11

I have created City, Area, Subarea Crud in Laravel 11. where city and area are simple are working correctly but the subarea blade in the add form when the city is selected then why respected areas to ...
Haseeb Yaseen's user avatar
0 votes
0 answers
28 views

PrimeFaces / jQuery: Keys not working on website

I have a website that has a <p:fieldset> for search parameters. Upon search in the oncomplete it is collapsed via PF('fieldsetFilter').toggle();. The page has a <p:dialog> which has <p:...
Hypernia's user avatar
1 vote
1 answer
960 views

I Can Only Add Breakpoints to Certain JavaScript Files in Visual Studio?

I'm having an issue where I have multiple JavaScript files, but only some of them allow me to add breakpoints within Visual Studio 2022. Files where I can't give the message "Breakpoint will not ...
austinn's user avatar
  • 131
1 vote
3 answers
112 views

JS on page load debug

A form field with the ID of mainSearch gets focus when the page loads. I am struggling to debug this and find out where that gets set in the source code. Is there a way I can debug this element to see ...
j00m's user avatar
  • 501
0 votes
1 answer
77 views

jQuery keypress binding works only when a breakpoint is set in Visual Studio debugger

I think there must be a race condition but don't know how to fix it. I've got several INPUTs lined up in row, each having a maxlength =1, and I want to move through them as the user types an ...
Tim's user avatar
  • 8,939
0 votes
1 answer
132 views

Why's my form action still being triggered when validating the form despite using e.preventDefault()?

I'd like to display a message above the name field if the user submits a name with a length greater than 20. This means the form will not get submitted - in other words, the form's action won't be ...
sp92's user avatar
  • 987
0 votes
1 answer
141 views

How can I prevent the WordPress website from lagging when I scroll down with the mouse?

I made a WordPress website for a client 3 years ago using Spectrum Theme. I checked the website yesterday and saw that there is a new behaviors that didn't exist before When I scroll down with the ...
wolfwood's user avatar
0 votes
1 answer
27 views

How can I grab the response of only the 2nd parameter of the view() function when doing a GET request?

I'm doing an ajax GET request $(dataTableSearchInputButtonID).on('click', function () { $.ajax({ type: "GET", url: "myUrl.test/tools", ...
whenitrainsitpours's user avatar
0 votes
2 answers
41 views

Why's the second condition always firing even though it's not being fufilled?

I'm checking to see if the file uploaded is > 5MB. If it is, throw the error message and clear the value of the upload. That works fine. I also want to check if the file is a .mov type. If it is,...
whenitrainsitpours's user avatar
0 votes
0 answers
28 views

How determine what Javascript code triggerd a modal dialog box?

I have a web page that uses several jQuery plugins. One of them is popping up a modal dialog box that has the title "Error" and no other information. I used the "inspect" option ...
Robert Oschler's user avatar
0 votes
1 answer
71 views

How can I display which item inside of an array of objects the user has clicked on using jQuery?

I'm trying to display the OfferName upon user clicking on a list of images that each have their own data (an array of objects) using jQuery. I've achieved this using plain JS but I want to know how ...
whenitrainsitpours's user avatar
0 votes
1 answer
50 views

Is there any way I can locate the javascript file once event occurs in DOM

For eg. On the page, I have a button with class .class-1 and I have a function for Click for this button on somejsfile.js ''' $('.class-1').on ('click', function() { alert "Hello"; }) ''' I ...
Chandra Shekhar Pandey's user avatar
-1 votes
1 answer
80 views

debugging dynamically loaded url - need of example

I cannot figure out how to use //# sourceURL to debug dynamically loaded html. My js file is: "use strict"; (function() { // Localize jQuery variable let jQuery; //part loading jQuery if ...
Malvinka's user avatar
  • 1,389
1 vote
1 answer
33 views

Selecting elements based on css attributes

const display = document.getElementsByClassName('display')[0]; var squares = []; let score = 0; function grid() { for(let i = 0; i < 6; i++) { for(let j = 0; j < 4; j++) { ...
Bmoney's user avatar
  • 11
-1 votes
1 answer
36 views

Why won't all the data get displayed on the browser even though all data is being displayed in console.log()?

I'm using an $.ajax(); request to make a call to my controller. Inside the console.log();, it's correctly displaying all of the data coming in but when I try to display it on the browser via $('#...
someone's user avatar
  • 83

15 30 50 per page
1
2 3 4 5
29