javascript - How to change RadioButtonList Name -


this html:

<table id="wizardsrs_rb_list" border="0"> <tbody> <tr> <td> <input id="wizardsrs_rb_list_1" type="radio" value="no" name="wizardsrs:rb_list"> <label for="wizardsrs_rb_list_1">no</label> </td> </tr> </tbody> </table> 

i can

<input id="wizardsrs_rb_list_1" type="radio" value="no" name="wizardsrs:rb_list"> 

and change value

<label for="wizardsrs_rb_list_1">no</label>

still showing "no" , normal,because need change text in

<label for="wizardsrs_rb_list_1">no</label>

but how cat this?in first easy $("#id") how for="wizardsrs" object?

you can

$('#wizardsrs_rb_list_1').next().html('no') 

or use attribute selector

$('label[for="wizardsrs_rb_list_1"]').html('no') 

Comments