options[Text] is null or not an object in javascript
<p>This is related to javascript , dono whether i can post it here or not... It would be great if somebody can help me ... I am getting options[text] is null or not an object error. What i am trying to do here is i am checking what all multi select lookup column values are selected , comparing them with the value in an array and then removing them</p>

<pre><code>  var responsibleselected = returntags("select","Responsibility selected values");
  for(var i=0;i&lt;responsibleselected.options.length;i++)
  {
       if(responsibleselected.options[i].selected == true)
          {
           for(var j=0;j&lt; ResponsibleArray.length;j++)
            {
 if(responsibleselected.options[i].text == ResponsibleArray[j])//throws error here
             {
       GipRemoveSelectedItems(ctl00_m_g_6ad915a8_68ea_4c76_b67a_ad1215320288_ff391_ctl00_ctl00_MultiLookupPicker_m); 
             }
            }
          }
  }
</code></pre>
