KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This is theoretical question to understand how many escapes (return or exit) can apply to nested loops or other controls and functions. I confused about this because I am stuck in the code How to escape from for ... each loop and method at the same time? I can't stop iterating over option s in select element. I tried return and return false already, but am unsuccesful. Generally how we can do that? function() { for (...) { if (...) { $(...).each(function() { // You have to exit outer function from here }); } } }
Tags (comma-separated)
Save Edits
Cancel