本帖最后由 Ncistgg 于 2012-03-12 23:38:37 编辑

解决方案 »

  1.   


    <!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 runat="server">
        <title>test</title>
        <script type="text/javascript">
        function getSelected(){
    alert('你要显示什么啊');
         }
        </script>
    </head>
    <body>
        <form name="a" runat="server">
        <select name="a">
        <option value="a">1</option>
        <option value="b">2</option>
        <option value="c">3</option>
        </select>
        
        <button onclick="javascript:getSelected();return false;" style="text-align: center; word-spacing: normal; font-size: medium; font-family: 宋体, Arial, Helvetica, sans-serif">点我显示</button>
        </form>
    </body>
    </html>