Hallo,
i would like to inform guest that he skip important input section.
That’s why i want to change background color div to some else when he scroll and did not checked any one input or write text to input
Hi @kontakt70, what you have written here is an assignment (so you’d un-check an element); the equality comparison goes like ===. Also, .getElementsByClassName() returns a node list, but you can only do that check on single elements. I’d suggest to use .querySelector() here instead, which will return the first match:
if (document.querySelector('.wiztype').checked === false) {/* ... */}
You still have to add the event listener to the window, not the document… ;-) other than that, it’s a bit hard to tell without seeing the actual markup. Can you maybe set up a fiddle or something like that?