[wp-hackers] Re: wp_enqueue_script Question
Chris Poteet
cpoteet at siolon.com
Fri Mar 28 03:43:44 GMT 2008
Now that I have jQuery loaded for some reason I'm having problems
initializing jQuery. I have no idea why. Below is the code I use and
the error I get. I am sure jQuery is indeed being loaded correctly.
add_action('wp_head', 'postinfo_head');
function postinfo_head() {
echo "...stylesheet...";
?>
<script type="text/javascript">
$(document).ready(function() {
$(".open-post-info").click(function() {
$(".post-info").show("medium");
return false;
});
});
</script>
<?php }
But Firebug tells me...
$ is not a function
[Break on this error] $(document).ready(function() {
More information about the wp-hackers
mailing list