Home > database >  Uncaught TypeError: Cannot set properties of null (setting 'innerHTML') at HTMLFormElement
Uncaught TypeError: Cannot set properties of null (setting 'innerHTML') at HTMLFormElement

Time:05-08

Chcę zmienić kolor w ocenie wyniku, w zależności od warunku, ciągle wyświetla się błąd (patrz tytuł). Co jest źle? Dzięki za pomoc. enter code here[enter link description here][1]

enter code here[1]: https://codepen.io/adg-adg/pen/XWMmGjN

CodePudding user response:

I'm sorry, I don't have much time, so I corrected it in response. the point is i am fetching the id from css because in this case i can only have one content tag to evaluate the result otherwise it will all make sense. If I am doing wrong, please explain. My point is that if you are overweight, for example, the text 'you are overweight' will be displayed in red, if it is underweight it will be yellow, and if it is normal, then green.

CodePudding user response:

I still don't know what I'm doing wrong, please explain exactly - thanks

[Calculator BMI][1]

  [1]: https://codepen.io/adg-adg/pen/XWMmGjN
  • Related