B
burfus
Hi,
I'm stumped on escaping a double quote when retrieving the value using
getElementById. Here is a sample where the quote is escaped but the
alert box only shows: Here is a \
<HTML>
<BODY>
<form name="testForm" action="#" method="post">
<INPUT type="hidden" id="testQuote" value="here is a \" mark">
</form>
<SCRIPT Type="text/javascript">
<!--
alert(document.getElementById("testQuote").value);
//-->
</SCRIPT>
</body>
</html>
Any Ideas?
TIA!
Burftone
I'm stumped on escaping a double quote when retrieving the value using
getElementById. Here is a sample where the quote is escaped but the
alert box only shows: Here is a \
<HTML>
<BODY>
<form name="testForm" action="#" method="post">
<INPUT type="hidden" id="testQuote" value="here is a \" mark">
</form>
<SCRIPT Type="text/javascript">
<!--
alert(document.getElementById("testQuote").value);
//-->
</SCRIPT>
</body>
</html>
Any Ideas?
TIA!
Burftone