Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Help with Jquery Code?

I'm new to jquery and need a little bit of help.

$("button").hover(function () {

$("p").toggle("slow");

});

What do I add so that the "p" area isn't showing until you click on the button. Right now it shows the "p" and then once you click on the button, then the "p" fades up. How do I do the opposite?

1 Answer

Relevance
  • 10 years ago
    Favorite Answer

    Try to hide p on load with <p style="display:none">...</p>. Then clicking the button will do the opposite.

    Source(s): Experience
Still have questions? Get your answers by asking now.