<tr class="entries">
<td class="lalign"><?php echo($place); ?></td>
<td><?php echo($title); ?></td>
<td><?php echo($genre); ?></td>
<td><?php echo($year); ?></td>
<td><?php echo($director); ?></td>
<td class="hiddenInfo"><?php echo($actors); ?></td>
<td class="hiddenInfo"><?php echo($format); ?></td>
<td class="hiddenInfo"><?php echo($id); ?></td>
<td><?php if(empty($link)==false){?><a href="<?php echo($link); ?>" target="_blank"><p>IMDB</p></a><?php } else {?> <p>N/A</p><?php }?></td>
</tr>
<div id="movieUpdate">
<h3>UPDATE MOVIE</h3>
<form action="index.php" method="POST">
<div class="formRow">
<input class="searchField" type="text" name="id" placeholder="ID"/>
</div>
<div class="formRow">
<input class="searchField" type="text" name="place" placeholder="Placering"/>
</div>
<div class="formRow">
<input class="searchField" type="text" name="title" placeholder="Titel"/>
</div>
<div class="formRow">
<input class="searchField" type="text" name="director" placeholder="Regissör"/>
</div>
<div class="formRow">
<input class="searchField" type="text" name="actors" placeholder="Skådisar"/>
</div>
<div class="formRow">
<input class="searchField" type="text" name="genre" placeholder="Genre"/>
</div>
<div class="formRow">
<input class="searchField" type="number" name="year" placeholder="År"/>
</div>
<div class="formRow">
<input class="searchField" type="text" name="format" placeholder="Format"/>
</div>
<div class="formRow">
<input class="searchField" type="text" name="link" placeholder="Länk"/>
</div>
<input id="submitButton" type="submit" value="Submit" />
</form>
If I want to make clicking the tr fill the fields of the form inside #movieUpdate. How would I go about doing that? I have tried re-purposing the code from this question(Fill inputs by clicking on div - jQuery) but have had no luck.