Open model after select an Item from selection? Laravel
<p>I have this selection right here: </p>

<pre><code> {!! Form::open(['action' =&gt; 'ProductController@products', 'method' =&gt; 'post']) !!}
 {!! Form::select('product_id', $products) !!}
 {!! Form::close() !!}
</code></pre>

<hr>

<p>$products variable: </p>

<pre><code>$products = Products::lists('name', 'id')-&gt;toArray();
</code></pre>

<hr>

<p>Now I have a working model. I've used the model on my other project with images. </p>

<p>Other Projects model I want to use: </p>

<hr>

<p>Open the Model:</p>

<pre><code>@foreach($themes as $thema)
      &lt;a style="cursor: pointer" data-toggle="modal" data-target="#{{ $thema-&gt;id }}"&gt;
            &lt;span class="text"&gt;{{ $thema-&gt;thema }}&lt;br&gt;&lt;/span&gt;
      &lt;/a&gt;
@endforeach
</code></pre>

<hr>

<p>The Model:</p>

<pre><code>@foreach($themes as $thema)
    &lt;div class="modal fade" id="{{ $thema-&gt;id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"&gt;
        &lt;div class="modal-dialog" role="document"&gt;
            &lt;div class="modal-content"&gt;
                &lt;div class="modal-header"&gt;

                    // not important

                &lt;/div&gt;
                &lt;div class="modal-body"&gt;

                // not important

                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
@endforeach
</code></pre>

<p>My problem is that I couldn't figure out how I can open the model by clicking on an item I've selected. Something like right in the time I click on an Item in the select-box, the model pops up. </p>

<p>or creating a button that gets the product_id and open the model if it gets klicked. </p>

<p>My knowledge in Javascript is to small to create this and maybe there is another way but I couldn't find one yet. </p>

<p>Thanks for any help! </p>