Ok sorry; I found the solution, that was easy.
I didn’t actually think of using this
So the answer would be: $(this)[0].id