title: Addition to another input
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#MPCheckbox').click(function() {
    if ($("#MPCheckbox").is(":checked") == true) {
      $('#mppay').val('0');
      $('#oppay').val() + parseInt(10); // it should be here
    } else {
      $('#mppay').val('10');
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;input class="form-control f-s-16" id="allcash" type="number" placeholder="enter the prize..."&gt;&lt;br&gt;
  
  &lt;br&gt;
  
  &lt;input type="radio" class="form-check-input" name="browser" onclick="myFunction(this.value)" value="10" id="org_radio_1"&gt;
  &lt;label class="customlabel form-check-label cursor-p tac text-white inpbox" for="org_radio_1"&gt;1. Saller 10%&lt;/label&gt;
  
  &lt;br&gt;
  
  &lt;input type="radio" class="form-check-input" name="browser" onclick="myFunction(this.value)" value="15" id="org_radio_2"&gt;
  &lt;label class="customlabel form-check-label cursor-p tac text-blue inpbox" for="org_radio_2"&gt;2. Saller 15%&lt;/label&gt;
  
  &lt;br&gt;
  
  &lt;input type="radio" class="form-check-input" name="browser" onclick="myFunction(this.value)" value="20" id="org_radio_3"&gt;
  &lt;label class="customlabel form-check-label cursor-p tac text-danger inpbox" for="org_radio_3"&gt;3. Saller 20%&lt;/label&gt;
  
  &lt;br&gt;&lt;br&gt;
  
  &lt;label&gt;MP 10%&lt;/label&gt;&lt;br&gt;
  &lt;input id="mppay" type="number" disabled=""&gt;$
  &lt;br&gt;
  &lt;label&gt;Abcd Py: 15%&lt;/label&gt;&lt;br&gt;
  &lt;input class="form-control text-white tac f-s-16" id="abcdpay" type="number" disabled=""&gt;$
  
  &lt;br&gt;
  
  &lt;label&gt;Your pay&lt;/label&gt;&lt;br&gt;
  &lt;input class="form-control text-white tac f-s-16" id="oppay" type="number" disabled=""&gt;$
  &lt;br&gt;
  &lt;input class="form-check-input" type="checkbox" id="MPCheckbox"&gt;&lt;br&gt;
  &lt;label class="form-check-label" for="MPCheckbox"&gt;don't include MP&lt;/label&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>There is one checkbox and actually 3 inputs.</p>
  <p>I select the value in the third input using the radio buttons.
  The problem is not there so I'm not showing it here, my question is this:</p>
  <p>When I select checkbox, I want to +10 addition to it without changing the value I have selected in the radio button. How can I do that?</p>
  <p>UPDATED:
  My html codes are working, my scripts are working, I'm just having problems where I shared it in the post.</p>
  <p>All I could do are:</p>
  <p>after entering the value in the input &quot;enter the outlet&quot;, when I select a seller, the % of the value I entered comes up. and the following share distributions are happening automatically. When I say &quot;don't include MP&quot;, I want the 10% value that the MP will receive to go there, the 10% value of the MP will go there without changing the value in the &quot;Your pay&quot; input.</p>