Popup window with ajax call

I have multiple buttons in my page.

I want each of them to call
a JavaScript function logData(x), that makes an Ajax call:

function logData(x){
$.ajax({ url: 'functions.php',
     data: {action: 'data', id : x },
     type: 'post',
     success: function(output){  

How can I create a pop up window (with multiple tabs) from the output?

Source: ajax

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.