clear the buttons

javascript United States
  • 18 years ago

    when i press a button i want it to clear some textboxes.


    whats the code i need ??


  • 18 years ago

    never mind


    faster to read a book ~ besides i done it


  • 18 years ago

    Code:

    <input type ="text" value ="I will go...." name ="hello">
    <input type ="button" onClick ="document.all.hello.value='';">

  • 18 years ago

    i had the buttons outside the <form> tag, so the buttons were not being cleared by my clear button


    all fixed now ~ but i'll remember your code for lator on


    Thanks..

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Every language has an optimization operator. In C++ that operator is ‘//’”