Show/hide radio

by Jayna

HTML

<form id='form-id'>
    <input id='watch-me' name='test' type='radio' />Show Div
    <br />
    <input name='test' type='radio' />
    <br />
    <input name='test' type='radio' />
</form>
<div id='show-me' style='display:none'>Hello</div>

JavaScript

$('input[name=test]').click(function () {
    if (this.id == "watch-me") {
        $("#show-me").show('slow');
    } else {
        $("#show-me").hide('slow');
    }
});