www.webdeveloper.com
Results 1 to 4 of 4

Thread: [RESOLVED] hide button when checked box is not checked problem

  1. #1
    Join Date
    Dec 2009
    Location
    City of Smiles
    Posts
    172

    resolved [RESOLVED] hide button when checked box is not checked problem

    Hello guys.

    I have a problem regarding hiding the button when checked box is not checked. The button can hide when it is not checked, but when the box is checked, the button do show but it's not clickable. Here is the code:

    HTML Code:
    <form action="testapprove.php" method="post">
            <input type="checkbox" onclick="this.form.submit.style.visibility=this.checked?'visible':'hidden';" >
            <span>I have read, and clearly understood the above statement.</span>
            <br /><br />
            <input name="submit" type="submit" value="I agree" style="visibility:hidden; background:#E80202; color:#FFF; font-size:11px; font-family:Tahoma, Geneva, sans-serif; height:20px; width:300px; font-weight:bold; padding-bottom:3px;" >
    </form>
    Help is highly appreciated.

    Hugs~kisses.
    Can't stand long hours coding in front of computer without being intoxicated.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Works when visible
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Dec 2009
    Location
    City of Smiles
    Posts
    172
    Thanks for the reply sir Fang. It works, it's odd, it works after restarting my apache. But Javascript is client-side right? F5 will do, but it doesn't a while ago.

    Anyway thanks.
    Can't stand long hours coding in front of computer without being intoxicated.

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Probably was a cache problem
    At least 98% of internet users' DNA is identical to that of chimpanzees

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