Hi, 

I need to get focus on an input element by clicking on an icon. I always get an error saying that my input is not defined when I try that. Does someone know how to solve that?


Thanks. 

Solution

Matheus Rodaelli Gaiotto wrote:

Hi, 

I need to get focus on an input element by clicking on an icon. I always get an error saying that my input is not defined when I try that. Does someone know how to solve that?


Thanks. 

Hi,

You can try to do that with javascript. When you press the button can one action with JS inside, something like this bellow.

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

Hope this helps you.

Solution