Hi,
The Javascript code inlcudes zero as an invalid value in the select and set the value to insert into the DOM of the select to null.The documentation states:Insert an OPTION in the SELECT at the specified index. If index is -1, the OPTION is inserted at the end. The attributes and value arrays must have the same length. These attributes are added to the option.
In W3 reference:
->selectDOM.add (element, before)
------>Parameters
- ------>
element of type HTMLElement - ---------------->The element to add.
- ------>
before of type HTMLElement - ----------------->The element to insert before, or
null for the tail
of the list.
The code is the next:
function JaxcentAddOption( sel, opt, index )
{
if ( index <
= 0 || index >= sel.options.length ) {
try {
sel.add( opt, null );
return;
} catch (e) {
}
try {
sel.add( opt, sel.options.length );
return;
} catch (e) {}
sel.add( opt );
return;
}
try {
sel.add( opt, index );
return;
} catch (e) {}
sel.add( opt, sel.options[index] );
}
With this change has fixed the bug.