select refresh

Hi,

I have a form with two select. When I change the first select, I want to refresh the second select. How?

var options = “12”;
form.attachEvent(“onChange”, function(name, value){
if (name == “first”) {
var second = form.getSelect(“second”);
// ¿?
// second.refresh(options); ¿?
}
});

Hi

correct,

var second = form.getSelect(“second”);// will give you select dom element
//or
var secondOpts = form.getOptions(“second”);

and reload options manualy