SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dialog/error text for Checkbox

    Hi everyone,
    I was wondering if it was possible to have some kind of dialog/error box that pops up with a message that says, "don't forget to calculate the square feet" when the Conceptual Site Plan Review checkbox is checked (and only when it's checked because if it's checked, the user needs to know that they have to do additional calculations per square feet). Attached is a text file with my current code. Thanks if anyone can help!
    Attached Files Attached Files

  2. #2
    SitePoint Addict ALL's Avatar
    Join Date
    Oct 2005
    Location
    South Dakota
    Posts
    215
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    HTML Code:
    <html>
    <head>
    </head>
    <body>
    <input type="checkbox" onclick="alert('don\'t forget to calculate the square feet');" name="something" id="something" /><label for="something">Calculate</label>
    </body>
    </html>
    This is crude but it works,
    -ALL
    Did I help you?
    You can repay me, support one of my projects (no money needed):
    JavaScript Wiki, Another Web Forum, Paranormal Site

  3. #3
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ALL View Post
    HTML Code:
    <html>
    <head>
    </head>
    <body>
    <input type="checkbox" onclick="alert('don\'t forget to calculate the square feet');" name="something" id="something" /><label for="something">Calculate</label>
    </body>
    </html>
    This is crude but it works,
    -ALL
    Thanks! I didn't realize that it was that easy.


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
  •