Hello, here's my problem. I am building an administration page that displays the users where you can edit or delete them. This page is built using jquery's $.Post ajax function and I am trying to nun jquery inside the page that is called by $.post but it doesn't work at all.I was trying to hide a table and make the rows alternate colors .In the script below you can see that I assigned a function to the button "Edit users" to hide the table with id "even" This is only to check and see if it works but it doesn't.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>display_users</title>
<script type="text/javascript" src="jquery.js"></script>
<script type = "text/javascript">
function(hideme){
$('#even').hide();
};
</script>
</head>
<body>
<?php
include "../php_scripts/connection.php";
mysql_select_db($database)or die(mysql_error());
$field = $_REQUEST['field'];
$query = "SELECT * FROM users ";
if ($field == "newest_first")
{$query .="ORDER BY id ASC ";}
if ($field == "oldest_first")
{$query .="ORDER BY id DESC ";}
if ($field == "alphabetically")
{$query .="ORDER BY username ASC ";}
$query = mysql_query($query);
while ($row = mysql_fetch_assoc($query))
{
echo"<table id = 'admin_results'>";
echo "
<tr>
<td width='50px'>ID</td>
<td width='200px'>Username</td>
<td width='200px'>Password</td>
<td width='200px'>E-mail</td>
<td width='75px'>Edit</td>
<td width='75p'>Delete</td>
</tr>
";
echo "<tr>";
echo "<td width='50px'>".$row['id']."</td>";
echo "<td width='200px'>".$row['username']."</td>";
echo "<td width='200px'>".$row['password']."</td>";
echo "<td width='200px'>".$row['email']."</td>";
echo "<td width='75px'> <input type ='button' name = 'edit_user' value = 'edit user' onclick = 'hideme();'/></td>";
echo "<td width='75px'> <input type ='button' name = 'delete_user' value = 'delete user'/></td>";
echo "</tr>";
echo "</table>";
echo "<table id='even'><tr><td></td></tr></table>";
}
?>
</body>
</html>