Click OK button to show a text in text box?

Discussion in 'Programming' started by dicksonwoo, May 8, 2012.

  1. #1
    I have a form:

    <form name="myform">

    Show:<input name="age" type="text" size=40><br>
    <input type="submit" value="Submit">

    </form>

    How to show the "Thank you" text in textbox when a visitor click on submit button?


    And is there a script can hide the form? After visitor click "Show" link, it shows?

    Thank you very much
     
    dicksonwoo, May 8, 2012 IP
  2. FishLog

    FishLog Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There are a number of ways this can be achieved. You can use Javascript to set the value of the input field and hide the form. You could also add an action to the form element which loads another page from the server.
     
    FishLog, May 11, 2012 IP
  3. e-abi

    e-abi Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    3
    Trophy Points:
    38
    #3
    e-abi, May 11, 2012 IP