[jQuery] function - keeping content up on load of page
I am using a script to change content in a window. I need the html
content in window to be up by default. With this script it's empty on
page load, and it's only up when you click link. What do I need to add
to this?
<script type="text/javascript">
$(document).ready(function() {
$('#links a').click(function() {
var url=$(this).attr('href');
$('#headlines').load(url + ' #newsItems');
return false;
});
});
</script>