A simple question

admin

Administrator
Staff member
A simple question about get the 'type' vaule of checkbox object.

...
<SCRIPT LANGUAGE="JavaScript">
function delItem()
{
if(document.getElementById(checkboxName).checked == true)
{
document.getElementById(checkboxName).type="hidden";
return true;
}
}
.....

A error appers, remand me that "could not get the type property.This command is not supported". I don't know why.

What I want is delete the check box object from the page when click it. Are there some methods can delete it directly? Thanks in advance!
:confused:

Lily
 
Back
Top