操作下拉框

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1

-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>textarea赋值</title>
<script language="javascript" type="text/javascript" src="jquery.js"></script>
<SCRIPT language=JavaScript>
     $(document).ready(function() {
        $("select").append("<option value='bb'>我是新添加的</option>")
        
})
</SCRIPT>    
</head>
<body>
<select name="">
  <option value="AD">A</option>
</select>
</body>
</html>
posted @ 2009-05-13 16:38  威风剑  阅读(146)  评论(0编辑  收藏  举报