[removed] get contents of textarea, textContent vs. innerHTML vs. innerText

前端 未结 2 2009
小鲜肉
小鲜肉 2021-01-02 04:11

I am having trouble getting the contents of a textarea with js. I feel like I\'ve done this many times before without problems but something is throwing it off or I have a

2条回答
  •  悲哀的现实
    2021-01-02 04:33

    This are your code?

    you write document.getElementByID.... and the "D" should be written lowercase "d"

    document.getElementById('productdescript').textContent;
    

提交回复
热议问题