trying to incorporate a jQuery script into a Wordpress site.
I created a custom page in my theme and added the following in the body tag:
<body>
...
<div id="msgid"> hello there
</div>
...
</body>
I also created a test.js file with the following:
$(document).ready(function(){
$("#msgid").html("Hello world.");
});
I am loading the test.js in the footer.
I was expecting to see Hello world. in the div. But it doesn't show anything.
Any ideas?
Thanks.