+ 1

How to get to the text of HTML Element???

I want to move text from element A to element B for this I need to get the text/context of the element A my question is how can I do this ??? //without jquary or something like that// I need help please!! thank you!!

7th Oct 2018, 9:04 PM
Naty
2 Answers
+ 2
Don't mean to intercept anybody's answers... just wondering (for clarification) do you know if you want: innerText -> suppresses some content (like hidden by CSS, whitespace and inner tags), though child tag content will be included. innerHTML -> content with inner tags too (security risk) textContent -> like innerText, but not suppressed: ignores CSS, includes whitespace / formatting like \n Also, are you possibly referring to a textarea? * This list is as I understand this working; hopefully not too amiss
7th Oct 2018, 11:30 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
textContent is what I wanted thank you a lot 😊😊😊😊😊
8th Oct 2018, 7:47 PM
Naty