In my code i am using a group of radio button having same id and name for all of the radio buttons.. but its value is different...
I have that value of the radio button that i want to be selected.. how can select that radio button using the value i have. consider an example..
<input name="newColorCode" id="newColorCode" type="radio" value="color_code_LightViolet"/>
<input name="newColorCode" id="newColorCode" type="radio" value="color_code_red"/>
<input name="newColorCode" id="newColorCode" type="radio" value="color_code_green"/>
i have the value color_code_green.. how can i make the corresponding radio button selected using jquery????
i tried this
$('input:radio[value=color_code_green]').checked=true;
but its not working