I’m using this jQuery to render a text box onClick. But, It’s not rendering… Also, on a side note I’m using Drupal 7. I have the jQuery in the Head tags of the html.php.
<script type="text/javascript">
$(document).ready(function() {
$("#front-background").hide();
$(window).load(function() {
$('#links-top-1').hover(function() {
$('#front-background').fadeIn(2000);
});
});
});
</script>
This may also be because of how Drupal handles compatibility with other JavaScript libraries.
You can wrap your jQuery function in:
or if you’re comfortable theming using the
template.phpfile, you can add the JS through the functiondrupal_add_js().See http://drupal.org/node/171213 for more details.