Jump to content

John.Whelan

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by John.Whelan

  1. Hi Everyone: I am having trouble with the JQuery Slide Toggle() method. Please refer to the code at: http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_slide_toggle What I want is for the flip element to change colour when the panel slides down and to return to the original colour when the panel slides up. I realize that I probably need the following elements:

    • an If statement;
    • the :hidden or :visible selector;
    • and the jQuery css() method

    But I cannot figure out the proper syntax. Can anyone tell me what I need to add to the code at http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_slide_toggle to get this to work? Thanks in advance for whatever advice you can provide. John

×
×
  • Create New...