This query gives me a list from the database
while($res=mysql_fetch_array($temp)){
echo "<tr>";
echo "<td id='copyme'>".$res['name']."</td>";
echo "<td><a href=''>Edit</a></td>";
}
echo "</tr>";
By clicking the edit i want the name to be written in this input box so i can update or delete it, the sql update query works once the name is on the box, my only problem is to get the name there once i click edit.
<label>Template name:</label> <input id="temp_edit" type="text" name="tempname" />
How can id do this via jquery? or is there a better way?