日期:2014-05-18 浏览次数:20482 次
<html> <head> <script language="javascript" type="text/javascript"> function addOption() { var s = document.all.select; var o = document.createElement("option"); s.options.add(o); o.value = "四川"; o.innerText = "四川"; } </script> </head> <body> <select size=1 name=select> <input type="button" name="btn" value="显示省份" onclick="addOption();" /> </body> </html>
------解决方案--------------------
在哪里绑?后台?还是用ajax方式?