What I want to do is that when I click on a <input type="text" /> tag the checkbox next to it should become checked. I've tried with the help of internet for a couple of hours but I just can't find how I interact with other objects properly to achieve what I want to accomplish.
I've tried with this code:
But I honestly don't have a clue of what I'm doing. I would be very grateful for any help suggested!