I want to have a field get focus when a button is clicked. This is probably dead easy - but how do I do that?
I see that others have used this solution (Focus On):
But nothing happens when I do this. The field I want to have focus on is in a modal, so when the button is clicked, the button also moves the parent modal dialog into play (unhides it). But that should not matter, right? Or do I have to do some other magic for this to work?