[jQuery] Still having problems with $(#myDiv').html('string'). thoughts?
On this page (
http://commadelimited.com/recipes/), I've got a div with an id
of "title". At the bottom of the page I'm running this function:
function updateTitle(str) {
$('#title').html(str);
}
like so:
<script language="JavaScript">
<!--
updateTitle('Welcome to recipe Manager');
//-->
</script>
But I get an error
Error: $("#title") has no properties
Source File: http://localhost/personal/commadelimited/recipes/includes/js.js
I really enjoy working with jquery but this is really irritating. I'm sure
it's something that I'm doing but I end up just switching over to
document.getElementById('title') which I KNOW works.
Can someone shed some light on this please?
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
andy@icglink.com
615.370.1530 x737
--------------//--------->
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/