KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am getting an error that this has an illegal continue statement. I have a list of words to check for form validation and the problem is it was matching some of the substrings to the reserved words so I created another array of clean words to match. If it matches a clean word continue else if it matches a reserved word alert the user $.each(resword,function(){ $.each(cleanword,function(){ if ( resword == cleanword ){ continue; } else if ( filterName.toLowerCase().indexOf(this) != -1 ) { console.log("bad word"); filterElem.css('border','2px solid red'); window.alert("You can not include '" + this + "' in your Filter Name"); fail = true; } }); });
Tags (comma-separated)
Save Edits
Cancel