Can someone help me with this problem? I can't solve this error code. When i inspect the code error in google chrome it says:"Uncaught SyntaxError: Unexpected end of input "

This is my javascript code:


var val = $("opdracht1").find("input:check").val();

if(val == "c"){
$("#opdracht1 legend").html("Dit antwoord is goed!");
$("#opdracht1 legend").css({"background-color": "green", "color": "white"});
} else

$("#opdracht1 legend").html("Helaas, probeer het nog een keer");
$("#opdracht1 legend").css({"background-color": "red", "color": "white"});


Thanks for the help!!