[Solved] stop jQuery execute any further code [closed]


return will stop the execution of the function in which you are calling it directly.

So yes, it will work in your case, unless you are putting it in the other two functions (check or the self-executing one) – in that case it will of course only stop the execution in the function you have put it into.

I must warn you that this is not a very good practice in most cases. Easily leads to code that is not pleasant to read and not easy to follow.

1

solved stop jQuery execute any further code [closed]