I have a <div> with radioboxes:
<div id='RB-01'>
<span>Item_1</span><input type='radio' name='RB01' value='1'><br />
<span>Item_2</span><input type='radio' name='RB01' value='2'><br />
<span>Item_3</span><input type='radio' name='RB01' value='3'><br />
</div>
Then with jQuery I want to get number on an account a radiobox that was checked:
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...
});
}
Sounds like you need
You could have quite easily found this on the jQuery API site…
JQuery each!