+ Reply to Thread
Results 1 to 5 of 5

Thread: Check box pop up information??

  1. #1
    dtz
    dtz is offline
    Barn Regular dtz is an unknown quantity at this point dtz's Avatar
    Join Date
    Feb 2009
    Posts
    96
    Rep Power
    3

    Check box pop up information??

    Hi everyone,
    i have a checkbox on my form and wanted to display some information when the user check it, any idea how to do it please??i tried to look for on line resources but could not find any of them.Thanks a lot in advance

  2. #2
    dtz
    dtz is offline
    Barn Regular dtz is an unknown quantity at this point dtz's Avatar
    Join Date
    Feb 2009
    Posts
    96
    Rep Power
    3

    Hi,
    i manage to get this function

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function show_alert()
    {
    alert("Congratulations ........");
    }
    </script>
    <head>
    <script type="text/javascript">
    
    But the problem is when i undo the checkbox the information come up again?

  3. #3
    aka RF; RadioactiveFrog grae.uk will become famous soon enough grae.uk's Avatar
    Join Date
    Oct 2008
    Posts
    211
    Rep Power
    4

    Quote Originally Posted by dtz View Post
    Hi everyone,
    i have a checkbox on my form and wanted to display some information when the user check it, any idea how to do it please??i tried to look for on line resources but could not find any of them.Thanks a lot in advance
    Hey dtz,

    I'm no expert but have something similar on a hre link on a few of my sites...

    try soemthing like this...

    Code:
    onClick="return confirm('WARNING: \n\nWhat ever your message is.')"
    
    Is that what you are after?
    “There are two theories to argueing with women. Neither of them work! ” - Unknown

  4. #4
    dtz
    dtz is offline
    Barn Regular dtz is an unknown quantity at this point dtz's Avatar
    Join Date
    Feb 2009
    Posts
    96
    Rep Power
    3

    Hi
    thanks for your reply, i tried this but nothing happened do you know what i am doing wrong??

    Code:
    <script type="text/javascript">
    function show_alert()
    {
    onClick="return confirm('WARNING: \n\nWhat ever your message is.')"
    
    }
    </script>
    </head>
    <body>
    
    
    <br><input type="checkbox" name="C1" value="ON" onclick="show_alert()" value="Show alert box" /></br>
    

  5. #5
    aka RF; RadioactiveFrog grae.uk will become famous soon enough grae.uk's Avatar
    Join Date
    Oct 2008
    Posts
    211
    Rep Power
    4

    Quote Originally Posted by dtz View Post
    Hi
    thanks for your reply, i tried this but nothing happened do you know what i am doing wrong??

    Code:
    <script type="text/javascript">
    function show_alert()
    {
    onClick="return confirm('WARNING: \n\nWhat ever your message is.')"
    
    }
    </script>
    </head>
    <body>
    
    
    <br><input type="checkbox" name="C1" value="ON" onclick="show_alert()" value="Show alert box" /></br>
    
    hey,
    scrap the function as you shouldn't need that I don't think..

    so just have this

    Code:
    <br><input type="checkbox" name="C1" value="ON" onClick="return confirm('WARNING: \n\nWhat ever your message is.')" value="Show alert box" /></br>
    
    “There are two theories to argueing with women. Neither of them work! ” - Unknown

+ Reply to Thread

Similar Threads

  1. Hashing (Encryption) Password & Other Sensitive Information
    By BLaaaaaaaaaarche in forum ASP Code Samples
    Replies: 5
    Last Post: February 23rd, 2009, 10:59 PM
  2. How do I check the tag of a child?
    By bryceowen in forum JavaScript Programming
    Replies: 4
    Last Post: February 19th, 2009, 02:01 PM
  3. Check if integer or float!
    By micky in forum .NET Development
    Replies: 23
    Last Post: January 14th, 2009, 05:20 AM
  4. Database accessbility information
    By ramez75 in forum Microsoft Access
    Replies: 7
    Last Post: January 12th, 2009, 09:52 PM

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

SEO by vBSEO