Click to See Complete Forum and Search --> : Text Box leading space


WhiteTiger
02-17-2003, 07:17 PM
Can anyone help . . . I post a form that has text and numeric data text boxes. The email I receive looks great if the text box contains text but if the box contains numbers, the first 2 digits disappear UNLESS I space bar over 1 space then add information before POST. I need a script that will space over 1 space in the text box before taking input from the user. Perhaps onGetFocus statement?

THANKS!!!!

Zach Elfers
02-17-2003, 07:38 PM
It's not JavaScript but it will work:

<input type="text" name="textbox" style="padding-left:10px;">

WhiteTiger
02-17-2003, 09:00 PM
Thanks, Zach . . . but it doesn't work, only the space bar space works in Outlook. Perhaps some setting I don't know about in Outlook? I had this same problem with a VB project once, it actually took space as if the space bar had inserted.
It probably will take javascript, I just don't know how to do that.

WhiteTiger
02-18-2003, 10:36 AM
Thanks, Dave, that worked. i incorporated it into my validator script with if ... else. Thanks again.