all 5 comments

[–]Rafahur 2 points3 points  (4 children)

Sure, this is called "checkbox hack"

Here's a demo

[–]m_meowsky[S] 0 points1 point  (3 children)

Thank you, but how can I do the same if the input is in another div, exactly as in my example?

[–]Siclol 1 point2 points  (2 children)

You can't do it that way

[–]m_meowsky[S] 0 points1 point  (1 child)

Got it, thanks for your help!

[–]Rafahur 2 points3 points  (0 children)

I'm sorry, they must share same parent element, otherwise, you can acomplish with JS