I have 3 links on a page, when clicking on one of the links, the radio button on the other page needs to be checked.
Looks like this:
<a href="page.html?amount=1">Go 1</a>
<a href="page.html?amount=2">Go 2</a>
<a href="page.html?amount=3">Go 3</a>
I have some checkboxes on the page.html which needs to be checked.
<input type="radio" name="amount" value="1" />
<input type="radio" name="amount" value="2" />
<input type="radio" name="amount" value="3" />
When click on Go 2, checkbox 2 needs to be checked. Anyone knows what js needs to be written?