title: ajax call to controller when value selected from select box
body: <p>i want to make a ajax call to controller when a value 
  is selected from select box.</p>
  
  <p>this is my code:</p>
  
  <pre><code>&lt;select class="form-control required"  name="law_name" id="law_name"&gt;
      @foreach($law_name as $lawname)
      &lt;option value="{{$lawname-&gt;id}}"&gt;{{$lawname-&gt;law_name}}
      &lt;/option&gt;
   @endforeach    
   &lt;/select&gt;
  
  &lt;script&gt;
      $("#law_name").on('change', function(){
                  alert('123');
                  $.ajax({
                          type: 'POST',
                          dataType: "json",
                          data: data,
                          url: "{{ URL::to('admin/SubLawController/index') }}",
                          success: function (response) {
                          }
                      });
                  });
  &lt;/script&gt;
  </code></pre>
  
  <p>my script is not running when i change value from select box </p>