title: How to change an attribute value in a validation form
body: <p>I have created a validation form, this is one of the fields that you have to compile:</p>
  
  <pre><code>&lt;input type="number" name="height" min="160" max="200"/&gt;
  </code></pre>
  
  <p>but, I want to modify the minimum number if someone clicks on a radio button.</p>
  
  <pre><code>&lt;input type="radio" name="gender" value="male"&gt;
  </code></pre>
  
  <p>if someone clicks here I want to set the minimum number of the height to <code>170</code></p>
  
  <pre><code>&lt;input type="radio" name="gender" value="female"&gt;
  </code></pre>
  
  <p>if someone clicks here I want to set the minimum number of the height to <code>160</code></p>
  
  <p>Can someone help me? :)</p>