Skip to main content

All Questions

0 votes
0 answers
85 views

app.js:55 Uncaught TypeError: Cannot read properties of undefined (reading 'value')

i have checked the node list before adding the 'fetchValues' function to make sure that it have a value , but when i add the function , this error shows up: Uncaught TypeError: Cannot read properties ...
Abdi Med Amin's user avatar
0 votes
1 answer
136 views

How to check for multiple ID attributes if they are being clicked with JavaScript?

I am trying to check for activity on any of some specific ID attributes on my webpage with JavaScript, and if they are activated, I want to execute some code. The code is working for a single ...
Rivered's user avatar
  • 779
0 votes
3 answers
465 views

JQuery select name array with unknown id

I have multiple inputs as an array like this: <input name="data[extras][1][id]" value="1"> <input name="data[extras][1][netto]"> <input name="data[...
Dubi90's user avatar
  • 3
0 votes
1 answer
637 views

multi select on change from array with selectors

On a form that I am creating, I have multiple select boxes where the user can select multiple items from. Like I do with all the other inputs on the form. I make an array of all the selectors of the ...
purple11111's user avatar
0 votes
4 answers
2k views

Push in a empty array a text input in Javascript

When a user enters a word in a text input, it is displayed on my page. And so the names can accumulate. At the same time, I want the names to be pushed into an array. Unfortunately, I can't do it: ...
Vit Ruve's user avatar
0 votes
1 answer
253 views

jQuery selector fails when ID contains square brackets

I have a php script that creates a number of inputs whose ID's are in an array. I am trying to check the value in the clicked one but it fails due to the selector being an array, I think. The code I'm ...
user3052443's user avatar
0 votes
1 answer
59 views

getting the same random index for 2 arrays

I am building a flashcard web app and I am trying to make a random japanese character appear but at the same time also have a english value to the character. So I have two arrays (one English and one ...
Codechunk's user avatar
-2 votes
1 answer
67 views

jquery does not show hidden div section with css

I'm using elementor to create a photo gallery that appears once the input button is clicked. My problem is that in the hidden div (css display:none) when I use show () or toggle () with jquery the ...
Mat Bre's user avatar
0 votes
0 answers
69 views

Adding the ID or class into the exact match element

Hi there I am expanding on my previous post: Jquery matching values. I was wondering if anyone knows how to have this also filter the ID or Class as it is doing with the data value. I am trying to ...
mgonz's user avatar
  • 45
0 votes
1 answer
1k views

How to get attributes from child elements?

How to get attributes from child elements but not get attribute from parent element inside container? I want parent attributes not to be displayed in the code, I tried with: Array.prototype.slice....
maja's user avatar
  • 177
1 vote
2 answers
53 views

Get all elements in the format "_ (10 RANDOM CHARACTERS) " from a webpage javascript

I have a webpage that has a table with table rows inside like the format below <tr id="_C15DKNWCSV">text</tr> I'm trying to scan the webpage and get all the table rows that follow the ...
b0nfire's user avatar
  • 33
0 votes
0 answers
41 views

Getting Errors where there should be none

I do not know why I am being asked to place commas where periods should be. const cards is saying I can't set it there when this is the way to set a variable. I have tried to change from const to ...
Jonaahfire's user avatar
-2 votes
1 answer
2k views

Get the element.values from querySelectorAll()

querySelectorAll(".blah") returns an array of elements. I want an array of each element's .value instead. Fastest way to do that?
fariadantes's user avatar
-2 votes
1 answer
469 views

Select option Hidden if selected in other select in array

For example if id="select[1]" selected value=1 id 2-5 can't select value=1 <?php for($i= 0;$i<5;$i++){ ?> <select id="select[]" name="select[]"> <option hidden ...
Artt's user avatar
  • 1
1 vote
3 answers
6k views

how to generate dynamic input and get the value by id using jquery

Actually i have a form where i enter name ,html page name in a input box and save it to the database. Here i got some issues i am able generate input box but how to get the value of that input box ?...
Shyam Nair's user avatar

15 30 50 per page