Uncaught TypeError: jQuery(...).select2 is not a function Laravel 5.3
<p>I am using Select2 and seeing the error below. This is my file:</p>

<pre><code>@extends('layouts.app')
&lt;link rel="stylesheet" type="text/css" href="{{URL::asset('css/select2.min.css')}}"&gt;

    @section('content')
    &lt;div class="container"&gt;
        &lt;div class="row"&gt;
            &lt;div class="col-md-8 col-md-offset-2"&gt;
                &lt;div class="panel panel-default"&gt;
                    &lt;div class="panel-heading"&gt;Dashboard&lt;/div&gt;

                    &lt;div class="panel-body"&gt;
                         &lt;select name="primaryLanguage" id="primaryLanguage"&gt;
                          &lt;option value="AL"&gt;Alabama&lt;/option&gt;
                          &lt;option value="WY"&gt;Wyoming&lt;/option&gt;
                        &lt;/select&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    @endsection
    &lt;script type="text/javascript" src="{{URL::asset('js/jquery-1.10.2.js')}}"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="{{URL::asset('js/select2.full.min.js')}}"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
        jQuery(document).ready(function(){
            jQuery("primaryLanguage").select2();
        });
    &lt;/script&gt;
</code></pre>

<p>The error i keep getting:</p>

<pre><code>home:7 Uncaught TypeError: jQuery(...).select2 is not a function(anonymous function) @ home:7fire @ jquery-1.10.2.js:3101self.fireWith @ jquery-1.10.2.js:3213jQuery.extend.ready @ jquery-1.10.2.js:3425completed @ jquery-1.10.2.js:3455
jquery-1.9.0.js:1 '//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.
</code></pre>