www.webdeveloper.com
Results 1 to 3 of 3

Thread: problem

  1. #1
    Join Date
    Jun 2013
    Posts
    23

    problem

    Hello

    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:

    $(document).ready(function(){
    $("#controle1").click(function(){

    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!!

  2. #2
    Join Date
    May 2004
    Location
    chennai, tamil nadu, India
    Posts
    448
    missing

    Code:
    } )

  3. #3
    Join Date
    Jun 2013
    Posts
    23
    Awesome, thanks! Were looking for ages lol

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles