Re: Set the value of a dropdown using Javascript?

  •  12-21-2007, 9:22 AM

    Re: Set the value of a dropdown using Javascript?

    Okay, I now have worked out how to change the innerHTML but the control remains the same ... is there a way to redraw / refresh it? Here is the code so far.
     
    lp = document.getElementById('CE_ctl00_ctl01_bcr_PostForm___PostBody___Editor_IDfontname');
    if(lp)

        {
            lp.childNodes.item(0).removeAttribute('selected')
            lp.childNodes.item(4).setAttribute('selected','True')
        ????????
        }
     

View Complete Thread