I've created dynamic links with an editName(id) function
<a onclick="{editName(2); $('#editName').dialog('open');}"
style="cursor: pointer; text-decoration: underline;">My Name</a>
In the above example My Name has an id=2
Now I can simply show an alert but how can I echo id through PHP?
function editName(id)
{
alert(id);
// <?php echo(id);?>
}