Radio Button and text questionaire

Radio Button and text questionaire

HI There

I have a long questionnaire that consist mainly of 2 to 5 radio buttons and a comment text box.

If rb1 is selected comment is enabled but if rb2 is selected it is disabled.

Current code is as follows:
HTML:

<input name="rbQ1" type="radio" ID="RB1">Yes</input>
 <input name="rbQ1" type="radio" ID="RB2">No</input>
<input type="text" id="textComment1" name="textComment1" enabled="false" />

$(document).ready(function() {                    
     
                    $("#RB1").click(function()
                    {   
                        $("#textComment1").prop("disabled",true);
                    });
                    
                     $("#RB2").click(function()
                    {   
                        $("#textComment1").prop("disabled",false);
                    });
                    };


To do the above jquery code for 30 will take forever. 

Any idea how this can be dynamically generated using php or jquery

Thx