Home >Web Front-end >JS Tutorial >Use javascript to dynamically assign TEXT type data in the database to TEXTAREA_Form special effects

Use javascript to dynamically assign TEXT type data in the database to TEXTAREA_Form special effects

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 19:15:001545browse

I want to dynamically add text type data to TEXTAREA. The following program cannot be displayed normally.
ShtForm is the Form field, and Txt_CmpnyPrms is TEXTAREA.
Response.Write("
")
When displaying the source of the web page The code is shown as follows: 
ShtForm.Txt_CmpnyPrms.innerText = ' efg



 s

 fdad

f

a

fda



fad';
Please tell me how to solve this problem
1FResponse.Write("
");
" "ipt> Response.Write("
");
2nd floor
Is it a problem with HTMLEncode?
3rd floor
To: sdts (God’s Angel)
No, HTMLEncode is what I came up with Added, when there is no HTMLEncode, the display format is as follows:     
4th floor
up
Floor 5
tempStr = "ShtForm.Txt_CmpnyPrms.innerText =unescape('" escape(v_Rs("Cmpny_Prms").GetChunk(1000)) "')"

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn