|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Simple one I hope:
How do you place a string w/ quotes in a form input field? Is there an escape sequence? For the following I want "It's true" to appear in the input field: <input type=text NAME='hashname' value='It's true'> But of course only "It" appears. thanks in advance |
|
#2
|
|||
|
|||
|
I checked but could not find a code for that. Have you tried the following?
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>name="hashname" value="it's true"[/code] |
|
#3
|
|||
|
|||
|
Ok, now I feel extremely stupid. Yes,
name="hashname" value="it's true" works. FYI, also name="hashname" value='it"s true' works if you want to print "it"s true". I guess IE see what the first quote type that you use and then searches for the second occurance of that character. Anything between the first and second goes into the input field. So for trivia, what if you want to print "The girl's boss said, "Tuff luck."". Thanks |
|
#4
|
|||
|
|||
|
Hi!
You can use " instead of the "real" quotes. Works with IE but I don't tried in Netscape. Regards Martin [This message has been edited by MartinD (edited November 23, 2000).] |
|
#5
|
|||
|
|||
|
So for trivia, what if you want to print
"The girl's boss said, "Tuff luck."" "The girl's boss said, "Tuff luck."" 'The girl's boss said, "Tuff luck."' |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Quotes in Form Input Field |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|