Is it possible to reference a javascript variable as you would an asp.net variable.
Code:var test="hello";Ideally the value of the textarea should now be "hello" and it should update itself if the variable test is changed.HTML Code:<input type="textarea" value="<%=test%>">
I know it would be easier to assign the textarea a id and dynamically assign the value, but I have a situation where I am loading html code from a text file and putting it into a hta span using innerHTML. I need the loaded html code to populate itself with data using the inline variable method above.
Bookmarks