cici-new

 

<html>

<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
 

$(document).ready(function(){
$("#selectTest").change(function()
{
//alert("Hello");
//alert($("#selectTest").attr("name"));
//$("a").attr("href","xx.html");
//window.location.href="xx.html";
//alert($("#selectTest").val());
alert($("#selectTest").val());
$("#selectTest").attr("value", "2");

});
});
</script>
</head>

<body>
<select id="selectTest" name="selectTest">
<option value="1">11</option>
<option value="2">22</option>
<option value="3">33</option>
<option value="4">44</option>
<option value="5">55</option>
<option value="6">66</option>
</select>
</body>

</html> 

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2021-11-21
  • 2021-08-03
  • 2021-10-20
猜你喜欢
  • 2021-11-17
  • 2021-07-27
  • 2021-11-17
  • 2021-11-09
  • 2021-11-09
  • 2021-06-13
相关资源
相似解决方案