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

Jquery獲取復(fù)選框被選中值的簡單方法

 更新時(shí)間:2013年07月04日 15:24:41   作者:  
這篇文章介紹了Jquery獲取復(fù)選框被選中值的簡單方法,有需要的朋友可以參考一下
復(fù)制代碼 代碼如下:

<input type="button" id="btn5" value="獲得選中的所有值">
<input type="text" name="dd" id="dd" size="50"  />
$("#btn5").click(function(){
          var str="";
                $("[name='checkbox'][checked]").each(function(){
                    str+=$(this).val()+",";
                })
                $("#dd").val(str)
          })

相關(guān)文章

最新評論