php - jquery ui Dialog get data from other file -


i try data other php file in show on jquery dialog box code:

    var url = $('.examplelink').attr('href');       var $modaldialog = $('<div/>')     .dialog({         resizable: true,         autoopen: false,         modal: false     });      $(function () {         $('.examplelink').on('click', function (e) {             e.preventdefault();             $modaldialog.load(url);             $modaldialog.dialog("open");         });     });     <a href="call.php?a=2" class="examplelink"  >test</a>       <a href="call.php?a=3" class="examplelink" >other test</a> 

but issue not show element keep give if a = 2 when click on both link.


Comments