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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.