欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jquery單選框radio綁定click事件實(shí)現(xiàn)方法

 更新時(shí)間:2015年01月14日 15:02:54   投稿:shichen2014  
這篇文章主要介紹了jquery單選框radio綁定click事件實(shí)現(xiàn)方法,可實(shí)現(xiàn)針對單選框radio值的改變作出響應(yīng),非常具有實(shí)用價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了jquery單選框radio綁定click事件實(shí)現(xiàn)方法。分享給大家供大家參考。

具體實(shí)現(xiàn)方法如下:

復(fù)制代碼 代碼如下:
<html>
<head>
<title>單選框radio綁定click事件</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
 $(function(){
  $(":radio").click(function(){
   alert("您是..." + $(this).val());
  });
 });
</script>
<style type="text/css">
h5{color:blue;}
textarea{resize:none;}
#word{color:red;}
</style>
</head>
<body>
<h5>單選框 radio 綁定 click 事件</h5>
<form action="" method="">
 <input type="radio" name="gender" value="男性">男性
 <input type="radio" name="gender" value="女性">女性
 <input type="radio" name="gender" value="春哥">春哥
</form>
</body>
</html>

希望本文所述對大家的jQuery程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評論