<!DOCTYPE html> <html> <head> <title>test</title> <script type="text/javascript" src="../static/js/jquery-3.6.1.min.js"></script> //js处理如下 <script type="text/javascript"> $(document).ready(function(){ $("#qd").click(function(){ alert("Value: " + $("#num").val()); }); }); </script> </head> <body> <!-- <input type="text" id="name"> <input type="submit" id="qd" value="提交"> --> <form> <select id="num"> <option>11</option> <option>12</option> <option>13</option> <option>14</option> </select> <input type="submit" id="qd" value="提交"> </form> </body> </html>