Function stops after click()
<p>I'm trying to simulate two click to open a menu. The first one opens the menu and the second the submenu but after the first click() the function stops.</p>

<p>This is my JS code:</p>

<pre><code>function open_menu(id_menu, id_sub_menu) {
    $('.sous-domaines a#lien-domaine-'+id_menu).click();
    $('a#lien-menu-'+id_sub_menu).click();
}
</code></pre>

<p>I call my function in HTML with this code:</p>

<pre><code>&lt;span onClick="open_menu('0', '116')"&gt;Open sub-menu&lt;/span&gt;
</code></pre>
