Why is querySelectorAll not working?
I am writing a website, took up a block of code with tabs and made the following function.
tabs ('. glazing_slider', '. glazing_block', '.glazing_content', 'active')
where the first is a block with all the tabs, the second is the tabs themselves, the third is the content to be switched and the class.
The problem turned out to be the following, I had a space after glazing_block, the code didn't work because of this.
.glazing_blockare not equivalent strings. It may not matter to you in life, but in computers everything is strict.Anonymous
To place the code, please use CodePen or similar tool. Thanks you!