Make the text adjacent to my checkbox clickable

chantellex

New Member
I'm trying to make the text adjacent to my checkbox clickable.Why is this code not working?\[code\]<form name="f1"><input type="checkbox" name="name[]" value="http://stackoverflow.com/questions/15850045/1"><span onClick="name[0].checked=(! name[0].checked);">Add whipped cream to your drink (add $0.50)</span><input type="checkbox" name="name[]" value="http://stackoverflow.com/questions/15850045/2"><span onClick="name[1].checked=(! name[1].checked);">Add whipped cream to your drink (add $0.50)</span></form>\[/code\]
 
Back
Top