Jquery slideTrigger has me stumped
-
I’m trying to add a slideToggle to a paragraph in my blog. The following code works for triggering an alert, but when I replace the alert with the slideToggle, nothing happens.
Here’s the alert:
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery(“#principles”).mouseover(function() {
alert(“Hello world!”);
});
});And here’s the slideTrigger:
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery(‘#principles’).mouseover(function() {
jQuery(‘#p-principles’).slideToggle(‘slow’, function() {
// Animation complete.
});
});I have checked, double checked, and quadruple checked the spelling of principles and p-principles, and the code is copied from the jQuery website. The #principles is the id of a span of text at the top of the paragraph with id = “p=principles”.
Any suggestions are much appreciated.
Bruce
- The topic ‘Jquery slideTrigger has me stumped’ is closed to new replies.