I am developing a project in laravel 5.5, the problem is that when I want to unlock and run the onclick event on a touch screen, I do not run it. How can I do it so that it runs on a touch screen?
here is the code
<li>
<ahref="{{ route('logout') }}"
onclick="event.preventDefault();
document.('logout-form').submit();">
Salir
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
</li>