Re: RichDropdown get selected value in javascript

  •  10-20-2005, 11:02 AM

    Re: RichDropdown get selected value in javascript

    var editor1 = document.getElementById('CE_Editor1_ID');
    var editor = document.getElementById('CE_Editor1_ID');

    if(editor.all)
    {
        var lis=editor.all.tags("LI");
    <--- this return a zero length list. So our code does not run. The length is also zero when an
                                                       item is selected from the list. Trying different way of writing LI, li , Li does not help.

          for(var i=0;i<lis.length;i++)
          {
               var item=lis.item(i);
               if(item._IsTreeDropDown=="True")
               {
                //put your code here        
               }
          }
    }

    Could you please help?
View Complete Thread