1

I have a table containing radio buttons, Below which I have series of buttons like Add, Delete , Details.

After selecting radio button and clicking on Details button, I need to get a popup that displays the selected row values.

Currently I have a details button that displays details below the main table. This is my details button:

<input type="submit" name="details" value="Details" id="btndetails"   />

Here 'ID' is the name of my radio button.

<?php
if(isset($_POST['details']))
{
    $n=$_POST['ID'];
    $a=implode("</br>",$n);
    list($add,$place) = explode("(!@!)", $a);
    ?>
    <table id="Details">
    <tr>
    <td>
    <ul><?php echo"<b>Address:</b>$add</br>";?></ul>
    <ul><?php echo"<b>Place</b>$place</br>";?></ul>
    </td>
    </tr>
</table>
}

How can I display this deatils table as popup on selecting radio followed by clicking details button?please help. Thank u

adarsh hota
  • 327
  • 11
  • 23
Lilly Shk
  • 147
  • 1
  • 21

1 Answers1

1

If you install the jQuery UI you can do it as simply as this.

$("btndetails").click(function(){
    $("#Details").bPopup();
});

Make Sure <table id="Details"> has style="display: none;"

EDIT

Sorry, I forgot to add the specific popup UI is here: http://dinbror.dk/bpopup/