Click table row only trigger event once for that row
Click table row only trigger event once for that row

Hi,
I'm trying to trigger an event on a table row just once per row. Link below will show an alert everytime that a row is clicked. Ideally i want it to show the alert the first time a row is clicked, but not the second. Additionally if a different row is clicked for the first time i would need the event to trigger the alert.
http://live.datatables.net/vuhuyuxe/1/edit
Thanks in advance
Matt
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can use a class for this. For example use the [jQuery :not selector] (https://api.jquery.com/not-selector/) with a classname that is added when clicking the row. For example:
http://live.datatables.net/vuhuyuxe/2/edit
Kevin
Awesome!!!
Thank you my man!