HTML button to save div content using javascript

前端 未结 4 894
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-03 05:45

I need to save content of div using pure javascript. I just edited one fiddle but I can\'t make it works :(

jsfiddle

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-03 06:24

    I agree with RGraham. However, if you use jQuery you can do it like this.

    Hello world

    Hi everybody

提交回复
热议问题