Skip to content
Advertisement

if else statement not working jsp

Is there anything wrong with my code? My if else statement is not working.

JavaScript

Advertisement

Answer

You need to use the .equals method to test for string equality. Try this instead:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement