Never mind, a seem to have figured it out Here is the code that I used to do this
<script type="text/javascript"> $(document).ready(function(){ e = $('[id$=_y]'); for (i = 0; i < e.length; i++) if (e[i].checked == true) { $('#' + ($(e[i]).attr('id').charAt(1)) + '_questionsLink').show(); $('#' + ($(e[i]).attr('id').charAt(1)) + '_toggle').val('show additional questions'); } }); </script>