How to get the selected radios

Fairly simple code how to select input element with name gender and type radio

[javascript]

$(‘input[name=gender]:radio:checked’)

[/javascript]