Hi all!
maybe someone can help me…
I have different div each one with a different id.
I want to do this in my stimulus_controller
connect(){
this.elementTarget.innerHTML = document.getElementbyID(“xx”)
}
but is not taking the document.getElementbyID… what can I do in order to get the div id= “xx”???
Question n2, how do I get a target with his Id or his value?
thanks!