$ ('[name = "duallist"]'). On ('change', function () {
var el = document.getElementsByName('duallist')[0];
alert(getSelectValues(el));
});
function getSelectValues(select)
{
var result = [];
var options = select && select.options;
var opt;
для (var i = 0, iLen = options .length; i
opt = options[i];
if (opt.selected) {
result.pu sh (opt.value || opt.text);
}
}
return result; }