Show/Hide DIV based on Form Checkbox

Show and/or Hide a Div based on a form checkbox selection.

by Mukul kant

HTML

<input type="radio" name="MyCheckBox" id="MyCheckBox" />
<input type="radio" name="MyCheckBox" id="" />
<div id="ShowMeDIV" style="display: none;">
    <p>Wow; it's just so simple!</p>
  </div>

JavaScript

$('#MyCheckBox').click(function() {
    if ($(this).is(':checked')) {
        $("#ShowMeDIV").show();
    } else {
        $("#ShowMeDIV").hide();
    }
});