Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The conditions for jQuery if, else if, else statements are not being executed when the condition in the if statement is not true. In this case, the code execution will move to the next else-if statement, and if that condition is also not true, it will move to the else statement. If none of the conditions are true, then none of the statements in if, else if, else blocks will be executed.