简体   繁体   中英

Preview Textarea Div not working

I am trying to create a Textarea Preview Div. I have scripted this code but it does not seem to be working, If anyone could help me out, I'll be greatfull. I only want to use HTML & JavaScript for this.

Script that does not work: http://jsbin.com/uduxim

Your script tag is wrong:

<script type="javascript">

It should be this way:

<script type="text/javascript">

Working version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM