Javascript error in FireFox

Javascript error in FireFox

I am able to run below code in IE but not in FireFox.
What wrong am I doing. Please let me know...


  1. Script :

  2. var prodElement = document.getElementById('moveattrribseq');
  3. var value = " ";
  4. prodElement.add(new Option(value,value));          : This not working in FireFox

  5. JSP code :
  6.  <select class="widthed" name="moveattrribseq" id="moveattrribseq" multiple="multiple" size="10" >             
  7.                 <c:forEach items="${sessionObj.attributeNameList}" var="sessionObj">
  8.                         <option value="<c:out value="${sessionObj.attributeName}" /> ">
  9.                             <c:out value="${sessionObj.attributeName}" />
  10.                         </option>
  11.                 </c:forEach>
  12.  </select>
ERROR : from FireBug

[Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame
prodElement.add(new Option(value,value));