Passing focus to a new button when another button is actioned.

I have a situation where when I push a button a small div slides out with 3 buttons in it...right now the focus remains on the button pressed to reveal the div...I would like the focus to be passed to the top button in the new div when the opener is actioned...I tried a few things but none work the way I want.


Thanx in advance!



Answer this question

Passing focus to a new button when another button is actioned.

  • Bruce Baker

    You need to use the select attribute along with the begin attribute to direct the animation at a different element:

    <cue begin="id('whataver')[state:actioned()]" select="id('the_other_button')"
    end="id('the_other_button')[state:focused()]">

    <set state:focused="true" />

    </cue>



  • Passing focus to a new button when another button is actioned.