[jQuery] attr('type') gives me checkbox instead of radio

[jQuery] attr('type') gives me checkbox instead of radio


<input type="radio" name="gender" id="f" value="1" />Female
<input type="radio" name="gender" id="m" value="2" />Male
var type = #('input[@name=gender]').attr('type');
alert(type);
Why do I get checkbox instead of radio?