ラジオボタンのセレクタの書き方は次のようになる。 $('input[type="radio"]') //素直にtype属性がradioの要素 $('input:radio') //こんな書き方もできる(すべてのラジオボタン。 :radio や *:radio も同じ。) $('#container input:radio') //ある要素の中のinput type="radio" ラジオボタンで今チェックされている要素の取得は :checked をつければよい。 $('#container input:radio:checked') 値の取得は val で。 $('#container input:radio:checked').val() 動作例 ある要素の中にあるラジオボタンで、nameがtestで、チェックされているものの値(value)をalertで表示する。
![【jQuery】ラジオボタンの値の取得 at softelメモ](https://cdn-ak-scissors.b.st-hatena.com/image/square/1547f4b97eb50bd09e99d5f897a6c447ee41f867/height=288;version=1;width=512/https%3A%2F%2Fwww.softel.co.jp%2Fblogs%2Ftech%2Ffb.png)