title: jquery load in laravel
body: <p>I'm trying to update a section of my page using this code. I have a select element #sModelo that every time that it changes, updates a table that i have. The problem is that when i change the select the load function receives
  <a href="http://localhost:8000/admin/auditorias/pesquisa/+idModelo+" rel="nofollow">http://localhost:8000/admin/auditorias/pesquisa/+idModelo+</a>" instead of <a href="http://localhost:8000/admin/auditorias/pesquisa/1" rel="nofollow">http://localhost:8000/admin/auditorias/pesquisa/1</a> (1 is the value from idModelo)</p>
  
  <p>Route:</p>
  
  <pre><code>Route::get('admin/auditorias/pesquisa/{idModelo}', array('uses' =&gt; 'PerguntaController@getBlocosPergunta', 'as'=&gt;'pergunta.pergunta'));
  </code></pre>
  
  <p>Blade code:</p>
  
  <pre><code>&lt;div class="form-group @if ($errors-&gt;has('modelo')) has-error @endif"&gt;
      &lt;select id="sModelo" name="modelo" class="form-control" style= "width: 150px"&gt;
          &lt;option value="" disabled selected&gt; Modelo &lt;/option&gt;
          @foreach ($modelos as $modelo)
              &lt;option value="{{$modelo-&gt;id }}"&gt;  {{$modelo-&gt;nome }}&lt;/option&gt;
          @endforeach
      &lt;/select&gt;
  &lt;/div&gt;
  ...
  &lt;table id="updateTabelaPerguntas" class="table table-bordered table-condensed alinhar"&gt;
      @include('pergunta.pergunta')
  &lt;/table&gt;
  </code></pre>
  
  <p>Jquery code:</p>
  
  <pre><code>$("#sModelo").on('change', function(e){
      var idModelo = e.target.value;
      console.log(idModelo); //shows the value 1
      $('#updateTabelaPerguntas').load('{{ URL::action("PerguntaController@getBlocosPergunta",array("idModelo"=&gt;'+idModelo+')) }}');
  });
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public function getBlocosPergunta($idModelo)
  {
      return View::make('pergunta.pergunta', array('blocos'=&gt;Pergunta::getBlocosPergunta($idModelo)));
  }
  </code></pre>