SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hide a Div after reset button is clicked

    Hi

    I am in the process of creating a caculator: http://newfounddisposal.ca/rate-calc/calc.php
    When you click the calculate button a message displays.
    How do I get the message to disappear after you click the reset button?

    Thanks

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,055
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    You can do this using JavaScript, e.g.

    Code JavaScript:
    var res = document.getElementById("results");
    setTimeout(function(){
      res.style.display = "none";
    }, 2000)

    HTH


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
  •