
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
jQuery get values of checked checkboxes into array
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
jQuery get values of checked checkboxes into array
I am trying to get values of all checkboxes that are currently checked and store them into an arr... I am trying to get values of all checkboxes that are currently checked and store them into an array. Here is my code so far: $("#merge_button").click(function(event){ event.preventDefault(); var searchIDs = $("#find-table input:checkbox:checked").map(function(){ return $(this).val(); }); console.log(searchIDs); }); However this outputs more than I need. I not only get the values, but some other st