title: Adding validation to dynamic forms
body: <p>I pull what to display on a particular form from my database, so the form elements are dynamic.</p>
  
  <p>I display radio buttons, or checkboxes or textboxes/textareas depending on how I want the form to display.</p>
  
  <p>Before someone submits the form, I have to validate that each form entry (radio, checkbox, textbox etc) has been selected.</p>
  
  <p><strong>How can I insert validation to these dynamic form elements?</strong></p>
  
  <p>Example:</p>
  
  <pre><code>&lt;input type="checkbox" id="@formInputId" name="@formInputName" value="@element.Id"  /&gt;
  </code></pre>