Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.bank = function(){
- var bank = document.getElementById('bankButton');
- $(bank).click(function(){
- $.ajax("/index.php", {
- type: "GET";
- }).success(function(data) {
- console.log("Yey, success: " + data);
- }).error(function(request, response, status) {
- console.log("Noe gikk galt. :(");
- });
- })
- })
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement