I have two checkbox fields. Using Javascript, I would like to make sure only one checkbox can be ticked. (e.g if one checkbox1 is ticked, if checkbox2 is ticked, checkbox1 w
Note that I am using onclick event:
function setFries(obj){ var fries = document.getElementsByName('fries'); if(obj.id =='hotdog') //Or check for obj.type == 'radio' { for(var i=0; i