I have a simple form with 4 checkboxes and a submit button. Each checbox has a unique value. The value is part of a URL for which when the submit button is clicked the value of the selected checkbox is used to build the link. It should also open the link in a new window.
Here is my HTML
<form name="Form"> <input type="checkbox" name="box" value="001"><label>box1</label><BR> <input type="checkbox" name="box" value="002"><label>box2</label><BR> <input type="checkbox" name="box" value="003"><label>box3</label><BR> <input type="checkbox" name="box" value="004"><label>box4</label><BR> <br> <input type="button" value="submit" name="butt" onclick="submit()"> </form>
- If checkbox is ticked
- Get input value
- Use input value to open a link
- Base link is for example "http://localhost/"
- If multiple checkboxes are ticked and i click submit i would like it to open the links
The final action would be for example if I checked box1 and clicked submit to open the link in new window i.e. http://localhost/001
Or if I checked multple boxed and clicked submit it would open all the links seperately.
Appreciate the assistance.