How to open a spinner with one click when another spinner is open
<p>I have few <code>spinners</code> on a form. When I click on any of them it opens and shows the options. When I click on any another <code>spinner</code> it closes the open <code>spinner</code> but then I need to click again on the desired <code>spinner</code> in order to open it.</p>

<p>I would like to catch the first click on the 2nd spinner so that I can close the first open spinner and then open the clicked spinner.</p>

<p>I saw posts about closing the spinner on any click outside, but that is not enough because I still do not know that the desired spinner was clicked (the <code>onclick()</code> of the 2nd spinner is not fired on).</p>