J'utilise Select2 et je vois l'erreur ci-dessous. Voici mon fichier :
@extends('layouts.app')
<link rel="stylesheet" type="text/css" href="{{URL::asset('css/select2.min.css')}}">
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Dashboard</div>
<div class="panel-body">
<select name="primaryLanguage" id="primaryLanguage">
<option value="AL">Alabama</option>
<option value="WY">Wyoming</option>
</select>
</div>
</div>
</div>
</div>
</div>
@endsection
<script type="text/javascript" src="{{URL::asset('js/jquery-1.10.2.js')}}"></script>
<script type="text/javascript" src="{{URL::asset('js/select2.full.min.js')}}"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("primaryLanguage").select2();
});
</script>
L'erreur que je continue à obtenir :
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.