<div class="codetitle"> <span><a style="CURSOR: pointer" data="86899" class="copybut" id="copybut86899" onclick="doCopy('code86899')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code86899"> <br><input type="button" id="btn5" value="取得所有選取的值"><br><input type="text" name="dd" id="dd" size="50"><br>$("#btn5").click(function() {<br> var str="";<br> $("[name str =$(this).val() ", ";<br> })<br> 🎜></div>