document.getElementById(...) is null or not an object

document.getElementById(...) is null or not an object




function SetCharacterStyle()
{   
    var id='TD'+getQueryString('ch');
    if (document.getElementById(id)!=null)
    {
        document.getElementById(id).className="font_white_12_bold_underlined";
    }
}

你可能感兴趣的:(document)