January 2012
1 post
2 tags
Using 'break' and 'continue' with jQuery's each()...
If you ever tried to use Javascript’s ‘break’ and ‘continue’ keywords within a jQuery each loop, you probably got a sytax error. The ‘break’ and continue ‘keywords’ do not make sense in the context of a jQuery each loop, but you can use ‘return true’ or ‘return false’ within your loop to simulate continue and break...
Jan 19th
33 notes