title: How to assign the input from two radio buttons to a single field?
body: <p>I am new in coding. I have two radio buttons. If a “yes” is selected in either from them a certain field (here kouAP) must be AUTOMATICALLY set to a value (in this case 0.56). The problems are: </p>
  
  <ol>
  <li>how to make both radio buttons to set the value to a single field?</li>
  <li>How to keep the wished value if one of the is “yes” and the other is “no”? No matter of the order of clicking.</li>
  </ol>
  
  <p>My JQuery makes no sense :(</p>
  
  <p>Thanks you</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;label for="Pre002"&gt;ccs&lt;/lable&gt;  
  &lt;br /&gt;
  &lt;input type="radio" id="Pre002o" name="css" value="0"&gt;
  &lt;label for="Pre002o"&gt;none&lt;/label&gt;
  &lt;input type="radio" id="Pre002d" name="css" value="4"&gt;
  &lt;label for="Pre002d"&gt;yes&lt;/label&gt;
  &lt;br /&gt;
  &lt;label for="Pre066"&gt;mi&lt;/lable&gt;  
  &lt;br /&gt;
  &lt;input type="radio" id="Pre066a" name="mi" value="0"&gt;
  &lt;label for="Pre066a"&gt;yes&lt;/label&gt;
  &lt;input type="radio" id="Pre066b" name="mi" value="1"&gt;
  &lt;label for="Pre066b"&gt;no&lt;/label&gt;
  &lt;br /&gt;
  &lt;input id="kouAP" type=“text” name="kouAP" readonly="true" placeholder="kouAP"&gt;
  &lt;label for="kouAP"&gt;at least one yes&lt;/label&gt; 
  </code></pre>
  
  <p><strong>JQuery</strong></p>
  
  <pre><code>$('input[type=radio].css; input[type=radio].mi').click(function(e){
    if ($(this).attr("id") == "Pre002d" || $(this).attr("id") == "Pre066a" ){
      $("#kouAP").val(0.5677075);
    }
    else {
      $("#kouAP").val(0);
    }
  });
  </code></pre>