如果名称相同,如何设置单选按钮相同的值

单选按钮更改时如何设置相同的值(选择某人时)

<body>

    <label>slect color:</label>
    <br>
    <label><input type="radio" name="logic_01">YES</label>
    <label><input type="radio" name="logic_01">NO</label>
    <br>
    <label><input type="radio" name="logic_02">YES</label>
    <label><input type="radio" name="logic_02">NO</label>
    <br>
    <label><input type="radio" name="logic_03">YES</label>
    <label><input type="radio" name="logic_03">NO</label>
<script>
    $('input[type=radio]').change(function(){
        $(this).attr("value","SS")
    })     
</script>    

</body>

例如,选择名称逻辑_01,然后

<label><input type="radio" name="logic_01" value="logic_01">YES</label>
<label><input type="radio" name="logic_01" value="logic_01>NO</label>