Skip to main content

Questions tagged [dom]

The Document Object Model (DOM) is an application programming interface (API) for valid HTML and well-formed XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated.

6 votes
1 answer
117 views

I wrote a project that allows you to make CSS corner rounding more consistent and, in my opinion, nicer. Here's full GIT repo with an example and a README.md: https:...
yurich's user avatar
  • 157
8 votes
2 answers
362 views

I am going through the Odin Project and have just finished the 'Library' project on their FullStack JavaScript course. As this is the first time I'll have my code reviewed, I want to know what I'm ...
matheus's user avatar
  • 83
4 votes
3 answers
279 views

I have a table of user info. When you click the button, I want to get the email address from each selected row, output into a comma-separated string. I got it to work with the following code, but I'm ...
LBF's user avatar
  • 143
0 votes
0 answers
97 views

I'm building a framework like this that can turn SASS-like code into CSS, a template engine like Mustache, a DOM manipulator like React, and a router to add a single page app, and I'm having a ...
ahmed qoreichi's user avatar
0 votes
0 answers
81 views

I've written this JavaScript code, which disables textboxes if the previous textbox is empty. This is so people enter the text in order — write first in the first textbox, only then the second textbox ...
MrKnowsNothing's user avatar
2 votes
1 answer
844 views

What the code does What the JQuery code does is add / remove classes on div's elsewhere on the page, depending on the button clicked. Button 1 clicked → add class ...
Tristan's user avatar
  • 21
2 votes
1 answer
88 views

I am trying to get the value from the from and and pass it to the API and output the result to the DOM. The code works fine but I am 1000% sure there is a better way to write THIS. Thanks for the help ...
just Props's user avatar
0 votes
1 answer
87 views

How can this be improved? I'm looking particularly at the twice repeated tabButtons.forEach(button => { ...
Matt's user avatar
  • 1
4 votes
2 answers
1k views

I am currently working on The Odin Project and have reached the JavaScript Part. There is a project, to create a Website that serves a a library. You can add a book and it appears on the site as a ...
morloq's user avatar
  • 119
3 votes
1 answer
420 views

Take this basic component using state: ...
user8758206's user avatar
2 votes
1 answer
86 views

After getting the code review I refactored the code and the updated version is below. I tried implementing the suggestions but because I am still learning I might refactor again after learning how to ...
Mubashir Waheed's user avatar
2 votes
1 answer
1k views

I don't know JavaScript and it's safe to say this is my first code ever written in JS. I just needed to animate my GIFs when user hovers over them only. Googling separate concepts such as "string ...
Edenia's user avatar
  • 1,588
2 votes
1 answer
196 views

I am learning Typescript and created a straightforward to-do list project to practice some basic concepts. I am able to Edit the todo Delete the todo Mark the todo as completed I want to how can I ...
Mubashir Waheed's user avatar
2 votes
2 answers
290 views

My code is already doing what I want, so it's functional, now my concern is, if there is a way to make it easier to read or even better and shorter my code, it's supposed to check if 3 'X' or 'O' are ...
Stein's user avatar
  • 21
0 votes
1 answer
393 views

I have an HTML table, and I would like to remove columns where the sum vertically is 0 dynamically. ...
TAHER El Mehdi's user avatar

15 30 50 per page
1
2 3 4 5
27