Help with a section of my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help with a section of my code

https://code.sololearn.com/WjXpmjq3dfSv/#js Hello, I have a section in my code commented that doesn't work correctly, the core idea is that I want to increase the box height by clicking on it. It should be calculated on percentages so every time i click on a box the other ones height reduces. I have the section commented.

23rd Sep 2018, 5:49 PM
DICM
DICM - avatar
2 Answers
0
First of all: Why you have declared 2 times onclick attribute in buttons? You know that not will be executed either but only last declared? Curiosity: You are two accounts? https://www.sololearn.com/Profile/4458184/?ref=app
23rd Sep 2018, 7:11 PM
KrOW
KrOW - avatar
0
I am on the wrong account
23rd Sep 2018, 7:45 PM
DICM
DICM - avatar