W3C DOM tests - Select boxes

This select box is element x.

This page contains test cases for basic document properties.

Test scripts

add()

The W3C way

var y = new Option('Test option W3C');
x.add(y,x.options[x.options.length]);

The Microsoft way

var y = new Option('Test option MS');
x.add(y,2);

remove()

x.remove(1)