Możesz to oczywiscie zrobic przez Ajax w przypadku gdy na bierząco będą dodawane nowe opcje do bazy
albo napoczatku pobrac do tablic dane z bazy a potem tylko przełączać miedzy tablicami
Jako bonus dam Ci 2 funkcje ktorych sam uzywam bo ostatnio podobna rzecz pisalem
function removeOptions( id ){
var oSelect = document.getElementById( id );
var oOptions = oSelect.getElementsByTagName( 'option' );
while(oSelect.options.length > 0)
oSelect.remove(0);
}
function addOptions( id, value ){
var oSelect = document.getElementById( id );
var arr = new Array();
arr = value.split( '^' );
var oOption = document.createElement( 'option' );
oOption.setAttribute( 'value' , arr[ 0 ] );
oOption.appendChild( document.createTextNode( arr[ 1 ] ) );
oSelect.appendChild( oOption );
}