T
Tim Fooy
Hi all,
I hope there is a simple solution to this rather trivial problem i can't
find a solution for.
Because it's better not to write characters like & and é directly into HTML
source, i wrote them as the named escape codes & and é The
strings in which they occur are written as javascript strings. Later i have
to copy these strings into HTML input text fields. There, they are shown
literaly, so you see & instead of just &.
In actual code:
<script type="text/javascript">
ar[1] = "one & two";
document.form.inputtext.value = ar[1];
</script>
shows the string "one & two" rather than "one & two" in the input field.
Is there a way to make the input field show the actual (interpreted) string
instead of just all the characters that are in the javascript string?
TIA,
regs,
Tim
I hope there is a simple solution to this rather trivial problem i can't
find a solution for.
Because it's better not to write characters like & and é directly into HTML
source, i wrote them as the named escape codes & and é The
strings in which they occur are written as javascript strings. Later i have
to copy these strings into HTML input text fields. There, they are shown
literaly, so you see & instead of just &.
In actual code:
<script type="text/javascript">
ar[1] = "one & two";
document.form.inputtext.value = ar[1];
</script>
shows the string "one & two" rather than "one & two" in the input field.
Is there a way to make the input field show the actual (interpreted) string
instead of just all the characters that are in the javascript string?
TIA,
regs,
Tim