0

My table is Jquery Bootgrid and I want to do an action by clicking and another action by double-clicking a row.

If I click a row, I want to alert the id of this row. If I double-click this row, I want to jump to another url eg. jump.php?id=[id of this row]

Can somebody give me tips or an example for my problem?

hexYeah
  • 1,040
  • 2
  • 14
  • 24
Oliver
  • 1
  • I flaged as duplicated because you already know how to handle events with bootgrid. You just need to know how to handle both click and double click in the same element. – Alisson Reinaldo Silva Feb 01 '18 at 11:25

1 Answers1

0

Use the dbclick event.

$("p").dblclick(function(){
    alert("The paragraph was double-clicked");
});

read more on W3

at14
  • 1,194
  • 9
  • 16