I assume in your original script you have { after else, which is missing here. Other than that put a debugger; statement in the first line of else. when you open chrome/safari debugger tools, the control will stop there and let you see the flow. Script errors very easy to catch, as a matter of fact.
↧