I need to open id="SUB_1"
when I click on <li id="B1">Botão 1</li>
and do the same when I click on <li id="B1">Botão 2</li>
open id="SUB_1"
that is below the q button has been clicked. And do msm with 3 as well, but only with that jquery I put in the end.
$(function(){
$(".Principal").click(function(){
$(this). ???
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><olclass="Principal">
<li id="B1">Botão 1</li>
</ol>
<ol id="SUB_1">
<li id="A1">1</li>
<li id="A2">2</li>
<li id="A3">3</li>
</ol>
<ol class="Principal">
<li id="B1">Botão 2</li>
</ol>
<ol id="SUB_1">
<li id="A4">4</li>
<li id="A5">5</li>
<li id="A6">6</li>
</ol>
<ol class="Principal">
<li id="B1">Botão 3</li>
</ol>
<ol id="SUB_1">
<li id="A7">7</li>
<li id="A8">8</li>
<li id="A9">9</li>
</ol>