I am using Jquery dialog within a table with some PHP code.
The script is as follows:
<script type="text/javascript">
$(function() {
$(".trigger").click(function() {
$(".dialog").dialog("open");
});
$(".dialog").dialog({
autoOpen: false,
position: 'center' ,
title: 'definizione',
draggable: true,
width: 480,
height: 380,
resizable: true,
modal: true,
show: 'slide'
});
});
</script>
The table is this:
[php]
TITLE | info |
---|
Now, I generate a button for each table row (which is correct) and the buttons works (they open a dialog window). The problem is that when I click on any of the buttons, jquery opens all the windows simultaneously, one over the other.
I can’t figure out how to open only the single window associated to its button.