jquery dialog can't pass a variable to php
Well I have a function "openDialog" and I want pass a parameter PHP $Id_var in a table... but doesn't work
function openDialog($Id_var) {
$('<div/>').dialog({
modal: true,
show: {
effect: "explode",
duration: 500
},
hide: {
effect: "explode",
duration: 500
},
open: function ()
{
if ($(this).is(':empty')) {
$(this).load('Ver_Estructura.php?id_ver=$Id_var');
}
},
height: 480,
title:"JQuery Dialog"
});
}
this is my code in the TABLE:
<td align="center"><INPUT TYPE=BUTTON onClick="openDialog(2)" VALUE="Ver Estructura"></TD>
Thanks.....