jQuery And $_GET[] variables in php Problem..
Hello! every body..
I have this echo in PHP
echo "<tr class=\"d".($i & 1)."\">
<td class=\"TrConf\">{$row['username']}</td>
<td class=\"TrConf\">{$row['tmima_name']}</td>
<td class=\"TrConf\" align=\"center\"><a href=\"{$_SERVER['PHP_SELF']}?action=delete&id={$row['id']}\" >
[DELETE]</a> <a href=\"{$_SERVER['PHP_SELF']}?action=edit&id={$row['id']}\" onclick=\"$('#example').fadeIn('slow')\"> [EDIT]</a></td></tr>";
here is the jquery script
- <script>
$(function()
{
$("#example").hide();
});
</script>
and here the table that appears and disappears
- <td id="example">
<div>
<input type="text" value="" />
<input type="submit" onclick="$('#example').fadeOut('slow')" />
</div>
</td>
</tr>
</table>
I want when you press edit table be appeared.
With the above code this doesn't works... Any Idea ?
Thanks in advance!