title: Display:none fields not being posted to controller
body: <p>I have a lightbox that contains a bunch of input elements that I have set up using HTML helpers for a create action.  They are optional fields, but I do apply the digit rule to them in jquery validation.  </p>
  
  <p>The user can open up this lightbox, and fill out the fields if they would like to, but they are not required.  It is in the same form as the rest of the data, but to submit, they have to close this lightbox.  </p>
  
  <p>On submit, not of the values from the lightbox are posted to the controller.  If I remove the inputs from the lightbox, it works fine.  It must have something to do with it being hidden, but why would that happen?  Is it jquery?  I have 'voavi-ignore' as my ignore class, so it should still be validating these.  I'm a bit confused and burnt out on this one as I've been a it for a while.  Everything else on my page works fine, and I just added these new fields to the lightbox.  </p>
  
  <p>js:</p>
  
  <pre><code>$(document).ready(function () {
      InitTab();
      $("#caseProductions").hide();
      $(".chzn-select").chosen();
      $(".filetypes").click(OnNewVOAVIClick);
      $(".countPerCase").change(OnCaseProdChange);
      $(".caseCount").change(OnCaseProdChange);
      $(".drinkWindow").change(OnDrinkWindowChange);
      $("#lnkCaseProduction").click(OnCaseProdOpen);
  
      VintageUpAlert();
  
      $.validator.addMethod("decimalNumber", function (value, element) {
          return this.optional(element) || (!isNaN(value));
      }, "Must be a valid number");
  
      wineValidator = $("form").validate({
          errorPlacement: function (error, element) {
              var x = element.parent();
              error.appendTo(element.closest("td"));
          },
          ignore: ".voavignore",
          rules: {
              "Wine.VarTypeID": { min: 1 },
              "Wine.OriginID": { min: 1 },
              "Wine.AppID": { min: 1 },
              "Wine.VintageID": { min: 1 },
              "VOAVIRequest.VarType": { required: true },
              "VOAVIRequest.Origin": { required: true },
              "VOAVIRequest.App": { required: true },
              "VOAVIRequest.Vintage": { required: true },
              "Wine.CaseProduction": { digits: true },
              "Wine.AlcoholContent": { number: true,
                  min: 0, max: 100
              },
              "Wine.pH": { number: true,
                  min: 0, max: 7
              },
              "Wine.RS": { decimalNumber: true,
                  min: 0, max: 1000
              }
          },
          messages: {
              "Wine.VarTypeID": { min: "Varietal/Type Required" },
              "Wine.OriginID": { min: "Origin Required" },
              "Wine.AppID": { min: "Appellation Required" },
              "Wine.VintageID": { min: "Vintage Required" },
              "VOAVIRequest.VarType": { required: "Varietal/Type Required" },
              "VOAVIRequest.Origin": { required: "Origin Required" },
              "VOAVIRequest.App": { required: "Appellation Required" },
              "VOAVIRequest.Vintage": { required: "Vintage Required" },
              "Wine.CaseProduction": { digits: "Please enter whole numbers only" }
          }
      });
  
      CaseProdValidation();
  });
  
  function CaseProdValidation() {
      $(".caseCount").rules("add", { digits: true });
  }
  </code></pre>
  
  <p>html (This is just the lighbox as the rest quite a bit of markup):</p>
  
  <pre><code>&lt;div class="lightbox" id="caseProductions"&gt;
      &lt;a href="#" class="ui-icon ui-icon-circle-close closer"&gt;&lt;/a&gt;
      &lt;table&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;h4&gt;
                          Format&lt;/h4&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;h4&gt;
                          Cases&lt;/h4&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;h4&gt;
                          Bottles/Case&lt;/h4&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;h4&gt;
                          Total Bottles&lt;/h4&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc187ml)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc187ml, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc187ml, new SelectList(Model.BottlesPerCase, "Key", "Value", 24), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc375ml)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc375ml, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc375ml, new SelectList(Model.BottlesPerCase, "Key", "Value", 12), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc500ml)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc500ml, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc500ml, new SelectList(Model.BottlesPerCase, "Key", "Value", 12), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc750ml)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc750ml, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc750ml, new SelectList(Model.BottlesPerCase, "Key", "Value", 12), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc1p5L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc1p5L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc1p5L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc3L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc3L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc3L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc5L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc5L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc5L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc6L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc6L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc6L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc9L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc9L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc9L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc12L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc12L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc12L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc15L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc15L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc15L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc18L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc18L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc18L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.cc27L)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cc27L, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.DropDownListFor(m =&gt; m.Wine.cpc27L, new SelectList(Model.BottlesPerCase, "Key", "Value", 1), new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;@Html.LabelFor(m =&gt; m.Wine.ccOther)
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.ccOther, new { @class = "caseCount" })
                  &lt;/td&gt;
                  &lt;td&gt;@Html.TextBoxFor(m =&gt; m.Wine.cpcOther, new { @class = "countPerCase" })
                  &lt;/td&gt;
                  &lt;td class="totalBottleCalc"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
      &lt;div style="display: inline-block"&gt;
      &lt;input type="button" value="Save" /&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>