Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- var CSRF_TOKEN = $('meta[name="csrf-token"]').attr('content');
- $("#btn-store").click(function(e){
- e.preventDefault();
- $.ajax({
- url: '/storeFavorite',
- type: 'POST',
- data: {_token: CSRF_TOKEN, school_id:$("#school_id_store").val(), favorite:$("#favorite_store").val()},
- dataType: 'JSON',
- success: function (data) {
- window.location.reload();
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment