I am trying to apply some jquery to my code….
<script type="text/javascript">
alert($('.thickbox'));
</script>
But this doesn’t work.
I have a jquery.js file included in my header (my header is in a different location than this script) .
The script above only works when I add the jquery.js above my code, but that leaves other functionality that uses jQuery not to work…is there a way to fix this? I am using WordPress for this.
What I am expecting to happen is the an alert box to appear, it does not though, I do not get any errors either.
Try this…
might work