Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with forms

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can I put more than one field on the same line in a form?
 
You could try putting your form in a table, each field in separate cell.
 
Much to complicated.
Just have a look at the code.
(F 10)
If you see any <br> tag, remove it.
If your first field is surrounded by a <p> tag
remove this.

<form name=&quot;Test&quot;>

<input size=30 onFocus=&quot;this.value='Put your name here'&quot; onBlur=&quot;alert(this.value); this.value=''&quot;>

<input size=30 onFocus=&quot;this.value='Where do you live?'&quot; onBlur=&quot;alert(this.value); this.value=''&quot;>

<input size=30 onFocus=&quot;this.value='Your age, please...'&quot; onBlur=&quot;alert(this.value); this.value=''&quot;>

</form>

Try it,
they're all in the same line and have a nice little
JavaScript effect.

Regards,
Buraje

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top