title: How to use form submit in a bootstrap dropdown?
body: <p>So I have the following code : </p>
  
  <pre><code>   {!! Form::open(['action'=&gt;['AdminController@update',$upload-&gt;id], 'method'=&gt;'POST']) !!}
                      &lt;div class="dropdown"&gt;
                          &lt;button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
                              Filter
                          &lt;/button&gt;
                          {{Form::hidden('_method','PUT')}}
                          {{Form::submit('Submit', ['class'=&gt;'btn btn-success'])}}
                          &lt;div class="dropdown-menu" aria-labelledby="dropdownMenuButton"&gt;
  
                              &lt;a class="dropdown-item" href="/manage"&gt;Approve&lt;/a&gt;
                              &lt;a class="dropdown-item" href="/manage"&gt;Reject&lt;/a&gt;
  
                          &lt;/div&gt;
                      &lt;/div&gt;
                      {!! Form::close()!!}
  </code></pre>
  
  <p>Instead of having the : </p>
  
  <pre><code>                      {{Form::hidden('_method','PUT')}}
                          {{Form::submit('Submit', ['class'=&gt;'btn btn-success'])}}
  </code></pre>
  
  <p>I'd like to use the <code>dropdown items</code> in order to submit data to the controller.</p>
  
  <p>I tried having something like this :</p>
  
  <pre><code> {{Form::hidden('_method','PUT')}}
       &lt;a class="dropdown-item" onclick="{{Form::submit()}}" href="/manage"&gt;Approve&lt;/a&gt;
  </code></pre>
  
  <p>The above didn't really work for me(actually it does work, but I don't want to submit with the button, but with the dropdown <code>items</code>). Can I combine the <code>Form::submit</code> and the dropdown items, such that when an item is clicked a <code>submit</code> is made?</p>