Force a click on a tag with Jquery

0

I want when my <li> is clicked, it activates a click on the <a> tag inside it.

<li class="tab card-panel z-depth-1 ativado historia hoverable">
                <a href="#historia" class="active a">
                  <div class="row valign-wrapper">
                    <div class="col s2">
                      <i class="zmdi zmdi-assignment zmdi-hc-2x"></i>
                    </div>
                    <div class="col s10">
                      <span class="">
                        <b>SOBRE NÓS</b>
                      </span> <br>
                      <span class="">
                        Lore inpsulum dolor fech assoc
                      </span>
                    </div>
                  </div>
                </a>
              </li>

How can I do this with Jquery?

    
asked by anonymous 27.04.2017 / 19:33

1 answer

1

I got people, it was simple:

$(li).click(function{
  $("li > a")[0].click();
});

I answered my own question because someone may have the same doubt one day.

    
27.04.2017 / 19:43