title: How to implement Multi Select Drop Down with checkbox in Thymeleaf and display selected values to Spring controller
body: <p>Multi Select Drop Down with check box example:</p>
  
  <p><img src="https://i.stack.imgur.com/MRyPv.png" alt="Multi Select Drop Down with check box example"></p>
  
  <p>How to convert below html code to thymeleaf to display in Spring  controller</p>
  
  <p>Select Hobby Type :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;form action="#" th:action="@{/display}" method="POST"&gt;
   &lt;div class="container"&gt;
   &lt;p&gt;&lt;strong&gt;Select Hobbies(Multiple):&lt;/strong&gt;
      &lt;select id="multiple-hobbies" multiple="multiple"&gt;
          &lt;option value="reading"&gt;Reading&lt;/option&gt;
          &lt;option value="cricket"&gt;Cricket&lt;/option&gt;
          &lt;option value="cooking"&gt;Cooking&lt;/option&gt;
          &lt;option value="movies"&gt;Watching Movies&lt;/option&gt;
          &lt;option value="music"&gt;Listening Music&lt;/option&gt;
          &lt;option value="sleeping"&gt;Sleeping&lt;/option&gt;
      &lt;/select&gt;
      &lt;/p&gt;
       &lt;input type="submit" value="submit"/&gt;
  &lt;/div&gt;
      
      
         &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>