0
I am trying to refresh only in part of the content, so I want to use Jquery with Load method. But I would like to use data-target="name" and load inside the HTML code LI. There is the possibility ?
Follows HTML code:
<nav id="sidebar" class="text-white">
<div class="nome-do-usuario border-bottom ">
<h5 class="text-center">Apoio Operacional</h5>
</div>
<ul class="lista-de-opcoes">
<li data-toggle="collapse" data-target="#materiais" class="opcoes-principais text-left"><a href="#">Estoque</a>
<ul class="submenu collapse" id="materiais">
<li class="opcao"><a href="#">Cadastro de produtos</a></li>
<li class="opcao"><a href="#">Entrada</a></li>
<li class="opcao"><a href="#">Saída</a></li>
<li class="opcao"><a href="#">Solicitar material</a></li>
<li class="opcao"><a href="#">Gerenciar estoque</a></li>
</ul>
</li>
</ul>
</nav>
<div class="container-fluid" id="resposta-do-conteudo">
Follows code Jquery:
$('.submenu li').click(function(){
$('#resposta-do-conteudo').load()
})
I wish the LI would stay that way: <li class="opcao" data-target="cadastro-de-produtos.html"><a href="#">Cadastro de produtos</a></li>
What to put inside the load() ?
Thank you !!!