How to get value of a selected radio button?
<p>I have a <code>&lt;div&gt;</code> with radioboxes:</p>

<pre><code>&lt;div id='RB-01'&gt;
&lt;span&gt;Item_1&lt;/span&gt;&lt;input type='radio' name='RB01' value='1'&gt;&lt;br /&gt;
&lt;span&gt;Item_2&lt;/span&gt;&lt;input type='radio' name='RB01' value='2'&gt;&lt;br /&gt;
&lt;span&gt;Item_3&lt;/span&gt;&lt;input type='radio' name='RB01' value='3'&gt;&lt;br /&gt;
&lt;/div&gt;
</code></pre>

<p>Then with <code>jQuery</code> I want to get number on an account a radiobox that was checked:</p>

<pre><code>var obj;
var tempId = "RB-01";
if ($('div[id=' + tempId + ']')) {
  $('div[id=' + tempId + '] input').each(function() {

  ...here I need save in the variable obj the number on an account input that was checked... 

  }); 
}   
</code></pre>
