Skip to main content
-2 votes
2 answers
56 views

I have a for loop function that loops through an HTML collection and adds an eventlistener to the elements in the collection. My problem is that I get an error about the event function being unable to ...
YAKOBISAAC's user avatar
1 vote
0 answers
24 views

I am beginner at javascript so I need to understand the intricacies of the language to code better and to score between at the interviews I am learning javascript from Hritesh chowdhury sir I watched ...
Chikowski Alfredo's user avatar
0 votes
1 answer
543 views

I'm working on a project where I need to remove multiple DOM elements from the page. Sometimes I need to remove a single element, and other times I need to remove a collection of elements (like a ...
Rajan Dhariyparmar's user avatar
0 votes
0 answers
38 views

I have a table and want to color the numbers based on their amount. Therefore, I try to get the innerHTML (with the number) of the td's with class="account-balance" in javascript. The ...
Maverick's user avatar
-1 votes
1 answer
57 views

Array.from() or Array.prototype.slice.call() or using for loop to add htmlcollection into array not working on converting HTMLcollection from getElementsByClassName into array so that i can iterate ...
Shnayder's user avatar
0 votes
1 answer
85 views

I am working on a battleship game and I am trying to update the x and y coordinates on an HTMLCollection. The way I am trying to update is not working because I am accessing it as a 2d array when it ...
DataMoshing's user avatar
1 vote
1 answer
63 views

So, I'm creating this system of adding and removing boxes. By default, there are 4 boxes. Users can delete those boxes or add new boxes. Problem is that I can only remove the default 4 boxes I created ...
Srishti's user avatar
  • 43
1 vote
1 answer
95 views

for (let i of document.formBox) { console.log(i) }; <form name="formBox"> <input name="inputOne"> <input name="inputTwo"> <button name='btn'>BUTTON</button> </...
Sein kim's user avatar
0 votes
2 answers
72 views

I'm looking for the simplest way to handle different events on dynamically generated input fields. Using MutationObserver looks complicated because requires processing each MutationRecord from the ...
Kirill's user avatar
  • 192
0 votes
2 answers
350 views

I have a section element having 3 div parent elements, I want to log section children. <section class="section1"> <div class="parent"> <p class="childP">hello&...
Kondaveti Charan's user avatar
2 votes
2 answers
619 views

I am trying to convert tableBody.children (HTMLCollection) into an array so that I can loop through it. To do this I am using Array.from(tableBody.children and assigning it to a variable, ...
Christian Lopez's user avatar
0 votes
1 answer
122 views

I'm trying to write a Chrome extension that adds "previous puzzle" and "next puzzle" buttons to the toolbar on a New York Times Crossword page. I hate having to navigate back to ...
GoldyCantCode's user avatar
-1 votes
1 answer
559 views

I am trying to develop a reusable accordion component where I have to find all the accordion items which are giving me HTMLCollection which seems like an Array form but if you go and try to manipulate ...
Kushal Jayswal's user avatar
1 vote
2 answers
82 views

I have an XML <root><example><examplevalue>exampletext</examplevalue><examplevalue>exampletext2</examplevalue</example></root> and I have the following ...
Laghorn's user avatar
  • 53
1 vote
2 answers
108 views

I'm trying to build a Tic Tac Toe game so I tried to collect the playbox areas in an array by first using getElementsByClassName() before using spread operator to convert the collection into an array. ...
Iyo's user avatar
  • 49

15 30 50 per page
1
2 3 4 5
11