Is it possible to refresh a php div element by id every second? I am using a javascript timer to fire an event to reload a php div element like so:

<script type="text/javascript">
var myVar=setInterval(function(){myTimer()},1000);

function myTimer()
//Refresh div tag with id "infinity" here
Further down:
echo "<div id=\"infinity\" style=\"float:left; padding-top:6px;\">\n";
echo "NOW PLAYING : $stats[SONGTITLE]<br>";
echo "</div>\n";
Is this even possible? I am using wordpress...
Thanks for any kind responses :-)