title: Laravel routes do not work with js
body: <p>I have a problem with my code. Don't know really what is wrong.</p>
  
  <p>This route should display Token data from input, but submit button is just loading and nothing happens. Therefore with inspect element - token is generated.
  Here is route : </p>
  
  <pre><code>Route::get('buy', function(){
      return View('pages.add_creditcard');
  });
  
  Route::post('buy', function(){
   dd(Input::all());
  });
  </code></pre>
  
  <p>Here is View (blade) : </p>
  
  <pre><code>{!! Form::open(['id' =&gt; 'billing-form', 'url' =&gt; '/buy', 'method' =&gt; 'post']) !!}
  </code></pre>
  
  
  
      
  
          Card Number:
          
  
      
  
  
  
  
  
      
  
          CVC:
          
  
      
  
  
  
  
  
      
  
          Expiration Date:
      {!! Form::selectMonth(null, null, ['data-stripe' => 'exp-month']) !!}
      {!! Form::selectRange(null,date('Y'),date('Y')+10, null, ['data-stripe' => 'exp-year']) !!}
  
  
      
  
  
  
  <p>{!! Form::submit('buy now', ['id' => 'submit']) !!}
      </p>
  
  <pre><code>{!! Form::close() !!}
  </code></pre>
  
  <p>and here is js file :</p>
  
  <pre><code>(function() {
  
  var StripeBilling = {
      init: function() {
          this.form = $('#billing-form');
          this.submitButton = this.form.find('input[type=submit]');
          this.submitButtonValue = this.submitButton.val();
  
          var stripeKey = $('meta[name="publishable-key"]').attr('content');
  
          Stripe.setPublishableKey(stripeKey);
  
          this.bindEvents();
      },
  
      bindEvents: function() {
          this.form.on('submit', $.proxy(this.sendToken, this));
      },
  
      sendToken: function(event) {
          this.submitButton.val('One Moment...').prop('disabled', true);
  
          Stripe.createToken(this.form, $.proxy(this.stripeResponseHandler, this));
  
  
          event.preventDefault();
      },
  
      stripeResponseHandler: function(status, response) {
  
          if(response.error) {
              this.form.find('.payment-errors').show().text(response.error.message);
              return this.submitButton.prop('disabled', false).val(this.submitButtonValue);
          }
  
  
          $('&lt;input&gt;', {
              type: 'hidden',
              name: 'stripeToken',
              value: response.id
  
          }).appendTo(this.form);
  
          //this.form[0].submit();
  
  
      }
  
  };
  
  StripeBilling.init();
  </code></pre>
  
  <p>})();</p>
  
  <p>This form is fully working, but POST method does nothing. maybe js is the problem?</p>