Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ajax = {
- username: 'user',
- password: 'pass',
- getInfo: function(){
- $.ajax({
- url: 'post.php',
- data: 'username=' + this.username + '&password=' + this.password,
- type: 'post',
- success: function(data){
- if(data){
- console.log('true');
- }
- else{
- console.log('false');
- }
- }
- });
- }
- }
- ajax.getInfo();
Add Comment
Please, Sign In to add comment