How to know if the current element is selected
<p>The idea is to go through all input fields and when <code>$(this)</code> has the radio type, check if it's selected, if it is save its value.</p>

<p>I know there are other ways to get the value of the selected radio button but Im already going through all inputs and doing something similar.</p>

<p>I've tried to check the attribute selected, <code>$(this).attr('selected')</code> without any luck... and I have no idea of how to do it.</p>

<p>Thanks</p>
