Try pasting your code into a validator to see if you don't have a typo somewhere: https://beautifytools.com/javascript-validator.php. Source: almost 2 years ago
So everything works fine the way I see it and that error only comes up after a few clicks. Since I'm not a js wizard I did put your script code into a javascript validator and it looks like you're missing a couple of semi colons here and there, maybe that'll fix it. Source: over 2 years ago
Do you know an article comparing Javascript Validator to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Javascript Validator. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.