I'm new to jQuery, let me know if I'm doing it right. So here's my code. I nested this function in another function. I want it to execute (pretty much just toggling images) until a count of 3 then continue to execute the rest of the parent function.
//parent function part 1
$(function flip(){
var count=1
if (count==3) {
return var count=1;
} else {
$('#i1').toggle(2);
$('#i1').toggle(2);
var count=count+1
});
//parent function part 2
return var count=1;
looks fishy – fge Jun 8 '13 at 4:52