JackFruit3D
11-12-2002, 02:55 AM
I have several checkboxes... ie.
<input type="checkbox" name="PickMe1" onclick="AddCookie('146', 'Red')">
<input type="checkbox" name="PickMe2" onclick="AddCookie('146', 'Blue')">
and the following script to run
function AddCookie(id, name)
if document.all.PickMe????????.checked then
document.cookie = name "=" & id
end if
end function
i was wondering (through my lack of knownledge) how i could use the id sent with the script to check if that check box is checked???
<input type="checkbox" name="PickMe1" onclick="AddCookie('146', 'Red')">
<input type="checkbox" name="PickMe2" onclick="AddCookie('146', 'Blue')">
and the following script to run
function AddCookie(id, name)
if document.all.PickMe????????.checked then
document.cookie = name "=" & id
end if
end function
i was wondering (through my lack of knownledge) how i could use the id sent with the script to check if that check box is checked???