title: Get value from modal window
body: <p>I have a problem with get a value of field from modal window.</p>
  
  <pre><code> &lt;div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="addModal" aria-hidden="true"&gt;
          &lt;form th:action="@{/groups/add}" method="post"&gt;
              &lt;div class="modal-dialog" role="document"&gt;
                  &lt;div class="modal-content"&gt;
                      &lt;div class="modal-header"&gt;
                          &lt;h5 class="modal-title" id="addModal"&gt;Add group&lt;/h5&gt;
                          &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
                              &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
                          &lt;/button&gt;
                      &lt;/div&gt;
                      &lt;div class="modal-body"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="recipient-name" class="col-form-label"&gt;Group Name&lt;/label&gt; &lt;input type="text"
                                  class="form-control" id="addName" name="name"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="recipient-name" class="col-form-label"&gt;Faculty&lt;/label&gt; &lt;select
                                  class="form-control"&gt;
                                  &lt;option th:value=0&gt;Faculty not assign&lt;/option&gt;
                                  &lt;option th:each="faculty : ${faculties}" th:value="${faculty.id}"
                                      th:utext="${faculty.name}"&gt;Faculty&lt;/option&gt;
                              &lt;/select&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="modal-footer"&gt;
                          &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
                          &lt;button type="submit" class="btn btn-primary"&gt;Save&lt;/button&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>In browser when I use "add" method, I can choose any Faculty from table, it works OK, but when I press button "save", only name returned to Controller and no info about faculty that was chosen. What I missed?</p>