I call my Dialog with a link
<li><a href='#refPerson' data-transition='pop' id=" + id + ">" + text + "</a></li>;
Is there away I can pass a variable which is also the id, to the refPerson beforeshow function? I am trying to not have to make a phony hidden element. I have tried a bunch of different ways but nothing seems to pass the var.
$(document).on('pagebeforeshow','#refPerson', function(){
});
I have changed how the dialog is called to making the onclick of the link a function that dynamically opens the dialog but I couldnt get that to correctly pass the param either. I just need to get the clicked links ID to the beforeshow function, or somehow pass a variable to it