Jump to content

jquery Help


piyush23424

Recommended Posts

hi

 

i am using the following  code to print list of records from the data base

 

 

<table style="width:85%; height:auto;">

<tr>

<td style="background-color:#d8eff8; text-align:center;">Pdf File</td>

<td style="background-color:#d8eff8; text-align:center;">Name</td>

<td style="background-color:#d8eff8; text-align:center;">Delete</td>

<td style="background-color:#d8eff8; text-align:center;">Download</td>

<!--<td style="background-color:#d8eff8; text-align:center;">test<td> --></tr>

<div class="demo-show2">

<?php foreach($records as $list){ ?>

<tr><td style=" text-align:center;"><?php echo $list->file_name; ?></td>

<td style=" text-align:center;"><?php echo $list->name; ?></td>

<td style=" text-align:center;"> <?php echo anchor("document/deletePdf/d/".$list->id,"delete"); ?></td>

<td style=" text-align:center;"><?php echo anchor("uploads/pdfs/".$list->file_name,"download"); ?></td>

<!-- <td  style=" text-align:center;">action </td>--></tr>

 

<? } ?>

</div>

 

at this moment the code is showing list in this way:

 

Pdf File Name       Delete       Download

 

test.pdf test             delete       download

test1.pdf testing     delete       download

test2.pdf testing123    delete       download

 

 

but now what i want is , i will replace the delete and download links with a new column action

when user will mouse over  the action text or image it will show the another div or layer having the

delete and download link.

 

Please guide me how can i do that , i have gone through many jquery examples but could not implement on my code.

 

Thanks in advance

 

 

Link to comment
https://forums.phpfreaks.com/topic/187418-jquery-help/
Share on other sites

Hi ,

 

You can do one thing you can add div with uniq id which you get from database.

 

or numeric like 1,2,....

 

Pass that particular id on mouseout event. in function hide div with passed id or show div with passed id and hide all other div s.

 

I think this will help you.

Link to comment
https://forums.phpfreaks.com/topic/187418-jquery-help/#findComment-993319
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.