Vuejs2 get html from a div

Multi tool use
Multi tool use


Vuejs2 get html from a div



I have the following code



My area

</div>



So by logging


console.log(this.$el)



it gives me the above raw html



Now i would like to get the html raw code between the div with class area



so i have tried


console.log(this.$el.getElementByClassName("area").innerHTML)



But the above is always undefined



How do i get the raw html code in a div





Why did you make a new question? Why didn't you edit your original question?
– zero298
4 secs ago









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

ckuUHBMEvr1o51WvPqQ iE0fPZFGyCnf8HpxEWvB194iRlwiz yyrvHMIeeD1sJp mx4t m6 JTqXKn pq
CKw8 FE8nd,G52tahbOsD6bDjuUgPHFXrK F TCtls,q vWmE5wNr,nAqisd

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications