Hi,

I have an Icon that when I click, I'm able to edit the InputElement1. I'm trying to focus this element but I can't find a way to do that because it's inside another container. I tried JavaScript but I didn't get it.

Below it's the tree that I have. I click on Icon and I have to focus InputElement1 inside Container3 and I just have Container1.id.


ContainerXZ

   Icon (link to be able to edit InputElement1)

Container1

      ExpressionA

      Container2

            ExpressionB

            Container3

                  InputElement1


Thanks in advance!


Hi Matheus,

you can use this code like


function myFunction() { 

           document.getElementById("inputid").focus(); 

       } 

 or 

function myFunction() { 

           document.getElementByClassName("inputClass").focus(); 

       }  

and call this fucntion on icon click event.


Hope this will help you.

Thanks

Rahul Sahu