Answer the question
In order to leave comments, you need to log in
How to solve "Property 'style' does not exist on type 'Element'" error?
I get all elements:
const items = document.querySelectorAll('.tabItem')
if (items[index]) items[index].style.display = 'none'
Property 'style' does not exist on type 'Element'.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question