how to add javascript to html page
<p>I was given this chunk of code to place in my html page but I know nothing about javascript so I have no idea where to place it and what kind of tag to place it in.</p>

<p>Can someone please help me.</p>

<p>Thanks</p>

<p>Code: </p>

<pre><code>$('input[type=radio]').change(function() {

$('input[type=radio]').each(function(index) {
  $(this).closest('tr').removeClass('selected');
});

$(this).closest('tr').addClass('selected');
});
</code></pre>
