[removed]() vs inserting DOM nodes: preserve form information?

后端 未结 4 1863
终归单人心
终归单人心 2020-12-19 08:05

Consider two web pages with the following in their body respectively:




        
4条回答
  •  囚心锁ツ
    2020-12-19 08:27

    Would it be possible for you to add a hook which you could use to target the new textarea into? eg. a

    var e = document.getElementByID('addtextarea'); e.innerHTML = '';

    Then if you needed to remember the contents you could take either the innerHTML value to include the HTML or just the text node value of the textarea to extract the text.

提交回复
热议问题