SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2006
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Switching form styles

    I want to switch the style of forms on click.

    I know onclick="this.className='classname'" would change the class on click, but I want the class to change when they click somewhere else on the site or click another form. I'm not talking about onmouseout because that would just change the style when the mouse leaves the area.

    What can I do?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Replace 'this' with a reference to the object whose class you want to switch.
    Birnam wood is come to Dunsinane


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
  •