SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I have text onclick change 2 styles?

    I would like to have a text link do 2 things:
    1. Change #box1.style1 to class="style2" (from style1)
    2. Change #box2.style2 to class="style1" (from style2)
    So the text link would not change its own style, but change the class of 2 different divs

    Your help is very much appreciated. Thank you!

  2. #2
    SitePoint Zealot
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •