0
Below I have a row of a table. This row can be marked by clicking on any location of it with the mouse triggering an event click.
However, specifically on the button, I do not want the javascript event to be triggered. Because the way it is never triggers the button’s Submit, it just calls the javascript event. It is possible?
<tr role="row" class="bg-green disabled color-palette">
<form method="POST" action="index.php"></form>
<td class="sorting_1">26-OCT-17</td>
<td>02:00</td>
<td>Quinta-feira</td>
<td>Sala 02 Bloco Cirurgico</td>
<td class="text-center botao-td">
<button type="submit" class="btn bg-navy btn-flat loading" id="botao-formulario"><i class="fa fa-check-square-o"></i> </button>
</td>
</form>
</tr>
-- Javascript:
$("#grade-horario tr").click(function(){
Ações.....
}
Wouldn’t it be easier to activate a function called by an id and give this id to each of the 'td’s that will be able to click? Or compare the value of $(this) to the value of td that you don’t want to have the click and then only continue the code if $(this) doesn’t equal it
– Matheus Suffi
That comparison you said with the TD’s stool, how could I?
– Rodrigo Segatto