|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Input text prefilling with spaces
I have several forms with simple input text boxes using <input type="text" name="FHno" size="4" maxlength="4"> When the form runs the input area is prefilled with spaces that must be deleted before the user can enter any data. How can I stop these spaces from filling the input area before the user types anything?
|
|
#2
|
||||
|
||||
|
That's bizarre. I don't understand why that is happening if you are not setting an initial value to the form field. It could possibly be a toolbar issue, like Google or Alexa or something else, that tries to prefill the field. Do you have any javascript that is tied to this form?
|
|
#3
|
|||
|
|||
|
Quote:
No java on the form at all, just HTML and ASP. I've tried setting the initial value to value="" with no change.I've also tried trimming any initial value without success. It is happening with both IE and mozilla firefox so it is not likely a browser problem. |
|
#4
|
||||
|
||||
|
Quote:
If you have several forms on the same page, does the text box have a unique name from all the others? For instance your box with the problem, "FHno". Does any other text box have that same name? If so, that might cause your problem. Post your code so that I can try to duplicate your problem. |
|
#5
|
|||
|
|||
|
Each form is on a page by itself and all the input names are unique
Quote:
|
|
#6
|
||||
|
||||
|
Okay. Post your code so that I can try to duplicate your error.
-------------------------------------------------------------------------------- Cast your vote in this form validation poll: http://forums.aspfree.com/t34569/s.html |
|
#7
|
|||
|
|||
|
Hi there. I had the same problem. If you convert the Text Area input to a response.write statement and print the entire thing out through VBScripting it solves the problem for some reason. This is the goofiest thing I have ever seen!!!!!!!!!!
TekNik |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Input text prefilling with spaces |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|