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...
- Script :
- var prodElement = document.getElementById('moveattrribseq');
- var value = " ";
- prodElement.add(new Option(value,value)); : This not working in FireFox
- JSP code :
- <select class="widthed" name="moveattrribseq" id="moveattrribseq" multiple="multiple" size="10" >
- <c:forEach items="${sessionObj.attributeNameList}" var="sessionObj">
- <option value="<c:out value="${sessionObj.attributeName}" /> ">
- <c:out value="${sessionObj.attributeName}" />
- </option>
- </c:forEach>
- </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));