title: adding conditions to required attribute
body: <p>I have a form with mainly all simple textboxes and I am using the required attribute for the fields that are required. However, I have a textarea that only needs to be required if the previous radio button is selected as "Yes", otherwise I don't want the textarea to be required. Here is the code for those 2 fields:</p>
  
  <pre><code>&lt;input id="ElecWiFi" name="ElecWiFi" required type="radio" 
  value="Yes" /&gt;
  &lt;textarea id="WiFiNeeds" cols="50" name="WiFiNeeds" rows="3" 
  placeholder="Electricity or Wi-Fi Needs"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>How would I make the textarea required only if Yes was selected in ElecWiFi field? Thanks in advance for any help.</p>
  
  <p>dr1054   </p>