<script>
document.getElementById('aaa').onclick=function(){
var s=""
for(var i=0i<this.options.lengthi++){
if(this.options[i].selected){
if(s)s+=","
s+=this.options[i].value
}
}
document.getElementById("bbb").value = s
}
</script>
<script language="javascript">function ParseMoney(str)
{
var idx = str.indexOf(".")
while (str.substring(0, idx++).length % 3)
{
str = "0" + str
}
return str.replace(/(\d{3})/g, "$1,").replace(/,\./, ".").replace(/(^0*)|(,$)/g, "")
}
document.write(ParseMoney("12356789.365145"))
</script>
运行试试吧,没问题的