Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
Single quote confusion in javascript generated HTML
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Al Henderson, post: 4964721"] To correct myself, textareas do work, but that is presumably because the HTML for them does not use VALUE='xxx' put just put the text between the <TEXTAREA> </TEXTAREA> tags. My text boxes work, but only because my utility code replaces single quotes with their HTML equivalent ($#39). So, to solve my problem, I have done the same replace on the string I put in the value of my hidden variable. Can anyone enlighten me as to why explicitly setting the value of the DOM element via javascript does not require me to encode quotes in the same way? Thanks, Al. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
Single quote confusion in javascript generated HTML
Top