
31-08-2009
|
 | Member | | Join Date: Oct 2005
Posts: 2,299
| |
| Re: Hide table with javascript
Here is the jQuery code: Quote:
$ (document). ready (function () (
$ (\. "delete \"). click (function () (
if (window.confirm (\ "Are you sure you want to delete this PA? \")) (
var area;
/ / var id = $ (this). attr (\ "id \");
area = \ "tr # \" + $ (this). attr (\ "id \");
$. ajax ((
Type: \ "POST \",
url: \ "index.php? = tg. $ GLOBALS [ 'babAddonTarget']."/ pa \"
data: \ "action = delete & id = \" + $ (this). attr (\ "id \")
success: function (msg) (
$. browser.msie? $ (box). remove ();:
$ (box). fadeOut (\ "slow \");
)
));
)
})});
</ script>
| Here is the html code for table Quote:
<tbody> <tr id="85">
<td style="text-align: center;" class="actionSide alt">
<a href="#" class="wiki_link_ext" id="85" title="remove this PA">
<img src="images/report_delete.png" alt="icone"> </ a>
</ td>
<td style="text-align: center;" class="actionSide85 alt"> 85 </ td>
<td style="text-align: center;" class="actionSide85 alt"> Internal Audit </ td>
<td style="text-align: center;" class="actionSide85 alt">
<a href="#" class="tooltip"> not well !...< em> <span> </ span> not good </ em> </ a>
</ td>
</ tr>
</ tbody>
<tbody> <tr id="86">
<td style="text-align: center;" class="actionSide">
<a href="#" class="wiki_link_ext" id="86" title="remove this PA">
<img src="ovidentia/styles/addons/images/report_delete.png" alt="icone"> </ a>
</ td>
<td style="text-align: center;" class="actionSide86"> 86 </ td>
<td style="text-align: center;" class="actionSide86"> Internal Audit </ td>
<td style="text-align: center;" class="actionSide86">
<a href="#" class="tooltip"> not well !...< em> <span> </ span> not good </ em> </ a>
</ td>
</ tr> </ tbody>
| |