DHTML Combobox - Direct URL link by selecting a list entry

Hi,



how can I use the combobox (in combination with a data.xml) with a direct hyperlink on each list entry.

In your example script there is first entry “one”, then “two” etc. So how can I go to “one.html” by selecting the entry “one”.



Thanx for your answer.

You can attach onChange event and use any custom logic


combo.attachEvent(“onChange”,function(){


document.location.href=combo.getActualValue()+".html"; //just a sample, in real life any code can be placed here


});

Thanx, it works great!!!