I have a checkbox, and I need the javascript to send the link according to the selected checkbox.
Example
html:
<input type='checkbox' id='1'>
<input type='checkbox' id='2'>
<input type='checkbox' id='3'>
Javascript
Well javascrip has to call the following link
http://link do site/index.php?id=(id igual ao do checkbox)
Does anyone know how to do this with javascript?