title: Add a drop down combo box into innerHTML using javascript and HTML
body: <p>I am trying to add a drop down combo box with a drop down mega menu.This is my code</p>
  
  <pre><code> if (trendsmega!="")
   { 
    var companymegaid=document.getElementById("megamenu-mlid-783");
    //alert("Found   "+trendmegaid.innerHTML);
  if (companymegaid!="")
  { 
    var othercompaniesli=document.getElementById("megamenu-mlid-1185");
     alert(othercompaniesli.innerHTML);
     othercompaniesli.innerHTML="";
   othercompaniesli.innerHTML=  "&lt;select&gt; &lt;option value="volvo"&gt;Volvo&lt;/option&gt;    &lt;option value="saab"&gt;Saab&lt;/option&gt; &lt;option value="mercedes"&gt;Mercedes&lt;/option&gt; &lt;option value="audi"&gt;Audi&lt;/option&gt; &lt;/select&gt;"; 
  }
   }
  </code></pre>
  
  <p>I am getting the following error</p>
  
  <pre><code>  missing ; before statement
      [Break On This Error]   
  
       ....innerHTML=  "&lt;select&gt; &lt;option value="volvo"&gt;Volvo&lt;/option&gt; &lt;option  value="saab"...
  
     /drupal/ (line 1329, col 56)
  </code></pre>
  
  <p>Can anyone help me how to add a combo box with innerhtml using java script.</p>