...

View Full Version : problem with "



scroots
01-15-2003, 08:08 PM
i have the following code
document.f.output.value+="<table border="1">"

the above code doesn`t work due to the "" around the 1 ("1"). How can i replace these in my code but when it is added to the textbox it shows up as "?

scroots

Tails
01-15-2003, 08:20 PM
You cannot use the same type of quotation marks. Use single quotes to surround the tag. Otherwise you'll get a string termination error since it thinks the next quote is the ending one.

kansel
01-15-2003, 08:21 PM
You can also use \" to put an actual " into the text field if you don't want to use single quote marks.

document.f.output.value+="<table border=\"1\">"

scroots
01-15-2003, 08:23 PM
thank you both, i know have learnt from your posts how to do it properly
cheers
scroots



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum