SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Workaround for getStyleClass

    Hi,
    Can someone please tell me how to work around this?
    I understand that getStyleClass is deprecated, but I am
    also getting an error on Firefox Firebug, that getStyleClass
    is not defined. Strange, the damn thing works, at times.

    Code:
    <div class="wrap">
    
       <form action="familyform" id="familyform">
    <select name="pullfamily" class="pullfamily" onchange="getStyleClass('wrap').style.fontFamily = this.options[this.selectedIndex].value;">
            <option value="#">Select Font Family</option>
            <option value="Times, serif">Times</option>
            <option value="Arial, Helvetica, sans-serif">Arial</option>
            <option value="Georgia, Times, serif">Georgia</option>
            <option value="Geneva, Arial, Helvetica, sans-serif">Geneva</option>
            <option value="Helvetica, Arial, Geneva">Helvetica</option>
            <option value="Verdana, Arial, Helvetica">Verdana</option>
            <option value="Courier, monospace">Courier</option>
            <option value="monospace, courier">Monospace</option>
          </select>
        </form>
    
    Hello,<br />
    &nbsp; &nbsp; Welcome to our community! 
    This is a Support and Research site for  our 
    Web Design &amp; Management Services. 
    Also sharing and freely distributing some free 
    samples of my work; Open Source Web Page 
    Designs (free web templates).  Family and 
    friends, members and guests, please be 
    social; sign our guestbook, view the gallery, 
    links, member profiles, and/or visit the forum.
    <br />
    Thanks,<br />
    Admin<br />
    
    </div><!-- close wrap -->

  2. #2
    SitePoint Zealot the DtTvB's Avatar
    Join Date
    Jul 2006
    Location
    Thailand
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The quickest and easiest solution is to "use ID!"

    Another way, is using cssQuery, or something like that.


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
  •