Update content of div auto
<p>I am trying to update a div's content automatically with this script: </p>

<pre><code>function update() {
  $.get("authentication/notifications.php", function() {
    $(".notificationBox").html();
    window.setTimeout(update, 10000);
  });
}
</code></pre>

<p>But for some reason it's not working. Nothing happens on the page. </p>

<p>notifications.php has to get some data from the database. And I know it's getting it, cus on a normal update of the page it's showing up. </p>

<p>notificationsBox is inside of the notifications.php and is just a normal div in a foreach() loop. </p>

<p>My notifications.php looks like this: </p>

<pre><code>&lt;?$notifications = $db-&gt;notifications();

foreach($notifications as $notifications):?&gt;
   &lt;div class='notificationBox'&gt;&lt;?=$notifications['pushCommentsContent'];?&gt;&lt;/div&gt;
&lt;?endforeach;?&gt;
</code></pre>

<p>I want the DIV to be outputted on update, or to be added to the existing. </p>
