title: How to get values from bootstrap modal and send them to a controller C# MVC
body: <p>on button click I'm opening modal with 3 inputs, one of them is dropdown where I can choose some of active users, and two another inputs are the inputs where I can write some title and Description for that user that I previusly selected in dropdown. Now what I would like to do is to pick informations from modal and to send them to my controller (c#), and I guess I must create javascript object and send that object with selected user, title and description to my C# Controller.</p>
  
  <p>Here is my modal code:</p>
  
  <pre><code>&lt;div class="modal-content"&gt;
              &lt;div class="modal-header btn-info" style="font-weight:bold;color:white;"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                  &lt;h5 class="modal-title modal-sm"&gt;Title&lt;/h5&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;form id="formCompose" class="form-horizontal form-label-left input_mask" method="post"&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="control-label col-md-3 col-sm-3"&gt;User&lt;/label&gt;
  
                          &lt;div class="col-md-9 col-sm-9"&gt;
                              @Html.DropDownList("UserID", new SelectList(ViewBag.Users, "Id", ".Name"), "Name", new { @class = "form-control" })
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="control-label col-md-3 col-sm-3"&gt;Title&lt;/label&gt;
  
                          &lt;div class="col-md-9 col-sm-9"&gt;
                              &lt;input type="text" class="form-control"&gt;
                              &lt;span class="fa fa-comment form-control-feedback right" aria-hidden="true"&gt;&lt;/span&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group"&gt;
                          &lt;label class="control-label col-md-3 col-sm-3"&gt;Description&lt;/label&gt;
  
                          &lt;div class="col-md-9 col-sm-9"&gt;
                              &lt;textarea id="message" rows="7" required="required" class="form-control" name="message"
                                        data-parsley-trigger="keyup" data-parsley-minlength="20"
                                        data-parsley-maxlength="100"
                                        data-parsley-minlength-message="You need to enter at least a 20 caracters long description comment.."
                                        data-parsley-validation-threshold="10"&gt;&lt;/textarea&gt;
  
                              &lt;span class="fa fa-language form-control-feedback right" aria-hidden="true"&gt;&lt;/span&gt;
  
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>And here is what I have tried with javascript, if we can call it even try:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var user = {User: "I need Id from dropdown here probably", Title: "Title from modal ", Description: "Description from modal" };
  &lt;/script&gt;
  </code></pre>
  
  <p>I really dont have idea how to get values form input and send them to a c# controller. Any kind of help would be great!</p>
  
  <p>Thanks guys
  Cheers</p>