how do i change the value of a text upon clicking a command butto

C

Confused Noob

How do I make it so that when a viewer of my website clicks a command button,
it changes the value of a certain text box???
 
T

Trevor L.

p said:
Need to use script, CSS, DHTML.

Try this
<form .......>
......
<input type="text" id="no" value="" size="8" />
<input type="button" value="Change"
onclick="this.form['no'].value='New text'" />
......
</form>
Clicking the "Change" button will place "New text" in the text box "no" .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top