M
M
Markiv072021-02-26 01:28:04
JavaScript
Markiv07, 2021-02-26 01:28:04

An error occurs TypeError: null is not an object?

Hello, this error occurs.
603822cb76015285552997.png
603822d4914db289813342.png

I'm trying to take a value from the dropdown lista and assign value to the e variable, I output it to the log and everything is fine, but when I need to display it on the order page, the whole block is not displayed, but it's surprising that if I just assign any e variable a numerical value (for example 2) then everything is displayed normally, although the error in the console does not disappear. I can not understand what the trouble is. I tried to convert this variable to a number, nothing happens. here is the code

https://codepen.io/markivv/pen/dyOJQZV

6038264bdfe06371567812.png

I will be grateful for your help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2021-02-26
@Kozack

The error says that the page, at the time of execution, could not find the element.cart-nav

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question