ElitoGame
Get DOM id attribute from current element
Hey there!
How do I get the id attribute of the current element in an inline function, similar to how it's possible in basic HTML?
This code snippet works in basic HTML:
How would I achieve this with tsx in SolidJS?
This seems like a really simple question, but I kinda struggled with finding a solution, other then wrapping it in a component and getting/managing the id like that.
Thanks for the help! =)
3 replies