I'm sorry about this newbie question, but I'm on early beggining of jquery.
I'm trying to grab the H1 title from an external page and append to a DIV on my website. I'm having trouble to get the content, and I need to check for changes on H1 every 10 seconds. What am I doing wrong?
<script type="text/javascript">
jQuery.ajax({
setInterval(function() {
url: "livetime.chronon.com.br/p1.html",
success: function(result) {
h1Content = $(body).find(h1).html();
},10000);
$('#h1Title').append(h1Content);
},
});
</script>
<div id="h1Title"></div>