Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#inter").on('click', function() {
- var value1 = $("#fto").val();
- var value2 = $("#fdate").val();
- var urlAPI = 'https://apifootball.com/api/?action=get_events&from='+value2+'&to='+value2+'&league_id='+value1+"&APIkey=fe753bc888bb6a75490621597fc3f4f93184ef9a2ffb5cffab3be87813b7023f";
- $.ajax({
- url: urlAPI,
- dataType: 'JSON',
- type: 'GET',
- success: function(result){
- $("#result").html("mecz: " + result.match_id + " liga: " + result.league_id);
- }});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement