I have the following Bootstrap submenu structure:
<ul class="dropdown-menu">
<li class="submenu-open">
<a href="http://google.com"><span class="dropdown-sub-toggle"></span>Some Text</a>
<ul class="collapse dropdown-submenu">
<li>
<a href="http://google.com">Some Text</a>
</li>
</ul>
</li>
</ul>
The menu is collapsing when I click on span tag - it's an arrow from the right. I need to prepend some text to span tag when it's clicked, but I can't select it with jQuery - $('.dropdown-sub-toggle').click(function({...})) doesn't work. How can I make it work?