<p>For the following HTML:</p>
<pre><code>&lt;form name=&quot;myForm&quot;&gt;
    &lt;label&gt;One&lt;input  name=&quot;area&quot;  type=&quot;radio&quot; value=&quot;S&quot;  /&gt;&lt;/label&gt;
    &lt;label&gt;Two&lt;input name=&quot;area&quot;   type=&quot;radio&quot; value=&quot;R&quot; /&gt;&lt;/label&gt;
    &lt;label&gt;Three&lt;input name=&quot;area&quot;   type=&quot;radio&quot; value=&quot;O&quot; /&gt;&lt;/label&gt;
    &lt;label&gt;Four&lt;input name=&quot;area&quot; type=&quot;radio&quot; value=&quot;U&quot; /&gt;&lt;/label&gt;
&lt;/form&gt;
</code></pre>
<p>Changing from the following JavaScript code:</p>
<pre><code>$(function() {
     var myForm = document.myForm;
     var radios = myForm.area;
     
     // Loop through radio buttons
     for (var i=0; i&lt;radios.length; i++) {
        if (radios[i].value == &quot;S&quot;) {
            radios[i].checked = true;   // Selected when form displays
            radioClicks();   // Execute the function, initial setup
        }
        radios[i].onclick = radioClicks;  // Assign to run when clicked
     }  
 });
</code></pre>
<p>Thanks</p>
<p>EDIT: The response I selected answers the question I asked, however I like the answer that uses <code>bind()</code> because it also shows how to distinguish the group of radio buttons</p>

[{'answer_id': 46715, 'author': 'Adam Cuzzort', 'author_id': 4760, 'author_profile': 'https://Stackoverflow.com/users/4760', 'pm_score': 1, 'selected': False, 'text': '<pre><code>$(function() {\n    $(\'input[@type="radio"]\').click(radioClicks);\n});\n</code></pre>\n'}, {'answer_id': 46717, 'author': 'Ben Scheirman', 'author_id': 3381, 'author_profile': 'https://Stackoverflow.com/users/3381', 'pm_score': 2, 'selected': False, 'text': '<pre><code>$(function() {\n\n  $("form#myForm input[type=\'radio\']").click( fn );\n\n});\n\nfunction fn()\n{\n   //do stuff here\n}\n</code></pre>\n'}, {'answer_id': 46733, 'author': 'pix0r', 'author_id': 72, 'author_profile': 'https://Stackoverflow.com/users/72', 'pm_score': 0, 'selected': False, 'text': '<p>I think something like this should work (but it\'s untested):</p>\n\n<pre><code>$("input[@type=\'radio\']").each(function(i) {\n    if (this.val() == \'E\') {\n        radioClicks();\n        this.get().checked = true;\n    }\n}\n$("input[@type=\'radio\']").click(radioClicks);\n</code></pre>\n'}, {'answer_id': 46735, 'author': 'Chris Zwiryk', 'author_id': 734, 'author_profile': 'https://Stackoverflow.com/users/734', 'pm_score': 0, 'selected': False, 'text': '<pre><code>$(function() {\n    $(\'#myForm :radio\').each(function() {\n        if ($(this).value == \'S\') {\n            $(this).attr("checked", true);\n            radioClicks();\n        }\n\n        $(this).click(radioClicks);\n    });\n});\n</code></pre>\n'}, {'answer_id': 46800, 'author': 'Juan', 'author_id': 550, 'author_profile': 'https://Stackoverflow.com/users/550', 'pm_score': 5, 'selected': True, 'text': '<pre><code>$( function() {\n    $("input:radio")\n        .click(radioClicks)\n        .filter("[value=\'S\']")\n        .attr("checked", "checked");\n});\n</code></pre>\n'}, {'answer_id': 46824, 'author': 'rp.', 'author_id': 2536, 'author_profile': 'https://Stackoverflow.com/users/2536', 'pm_score': 4, 'selected': False, 'text': '<pre><code>$(document).ready(function(){\n    $("input[name=\'area\']").bind("click", radioClicks);\n});\n\nfunctionradioClicks() {\n    alert($(this).val());\n}\n</code></pre>\n\n<p>I like to use <code>bind()</code> instead of directly wiring the event handler because you can pass additional data to the event hander (not shown here but the data is a third bind() argument) and because you can easily unbind it (and you can bind and unbind by group--see the jQuery docs).</p>\n\n<p><a href="http://docs.jquery.com/Events/bind#typedatafn" rel="nofollow noreferrer">http://docs.jquery.com/Events/bind#typedatafn</a></p>\n'}]
['https://Stackoverflow.com/questions/46704', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2755/']