DOM setAttribute() isn't working, How do I fix this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

DOM setAttribute() isn't working, How do I fix this?

Im using Java to code 100 vertical bars in each order, based on their size Example: ||||| |||| ||| ... || | But I used it in Java to make it work, but as a result, it shows nothing Code: https://code.sololearn.com/WoDK8d4W3jcD/?ref=app What do I do?

1st Oct 2019, 7:52 AM
Name Omitted until I come back
1 Answer
+ 3
// My code https://code.sololearn.com/WgTDZa4uqVOl/#html // My comment First, you forgot to close the "Rect" tag as you were creating one inside the other... The tag because it has a different form of rederization, the modification of your attributes gets a little more complicated with use JavaScript.
1st Oct 2019, 12:51 PM
Jônatas Araripe
Jônatas Araripe - avatar