I have the following link
<a id="like" class="far fa-thumbs-up fa-lg colorIcono" th:href="${'/respuesta/like/' + respuesta.respuestaSuya.id + '/' + respuesta.id}"></a>
And what I want is to be able to execute it once, that is to say, when it is a second time, it does not go anywhere.
I've tried the following but I know it's never going to open because I do not put any conditions on it, and I do not know what kind of condition to put.
$('#like').click(function() {
alert("NO");
return false;
});