I have the following problem, I have the following piece of code.
<li>
<form action="ControladorUsuario" method="POST" id="cerrarSesion">
<input type="hidden" name="uAccion" value="Salir">
<a href="#" id="salir"><i class="fa fa-fw fa-power-off"></i> Salir</a>
</form>
</li>
I need to do the form submit, when I click the link. I have done with jquery
$('#salir').click(function(){
$('#cerrarSesion').submit();
});
Also putting the submit in an onclick in the link, but I do not get anything ... Any suggestions? Greetings
EDIT: Now it works for me, remove the form completely and put it back and I added this:
$('#salir').click(function(){
$('#cerrar').submit();
});
Thanks for the answers;)