SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast sugardaddy's Avatar
    Join Date
    Jul 2004
    Location
    salisbury
    Posts
    44
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Exclamation what does this mean...

    What does the ! in "if (!form" mean?


    <script language="JavaScript" type="text/JavaScript">
    <!--
    function checkme(form) {
    if (!form.agree.checked) {
    alert("You must agree to the terms & conditions to enter the contest");
    return false;
    } else {
    return true;
    }
    }
    // -->
    </script>

  2. #2
    SitePoint Member
    Join Date
    Sep 2005
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It means not. In that case, if not checked then send a message saying "You must agree to the terms & conditions to enter the contest".

  3. #3
    SitePoint Enthusiast sugardaddy's Avatar
    Join Date
    Jul 2004
    Location
    salisbury
    Posts
    44
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    thanks!!!


Bookmarks

Posting Permissions

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