Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var testval = 'test';
- function getip(){
- $.ajax({
- type: "POST",
- url: "/php/utils.php",
- data: "id=getip",
- success: function(data) {
- if (data) {
- testval = data;
- } else {
- console.error('undefined');
- }
- }
- });
- }
- alert(testval);
Add Comment
Please, Sign In to add comment