dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: IE7 CSS application to elements...

  1. #1
    Join Date
    Dec 2007
    Posts
    95

    IE7 CSS application to elements...

    I have a button that runs a JavaScript function to dynamically create new drop down boxes.

    The drop down boxes are part of a class called "text" that changes the appearance of the text inside the drop down menus.

    When adding a new box with the JavaScript function in other browsers FX, OP, SAF, they appear with the class style applied. In IE7 they do not have the styling applied.

    Anyone know why this might be?

    Cheers,
    TK

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Have you used obj.setAttribute('class', 'text');?
    If so use obj.className='text';

  3. #3
    Join Date
    Dec 2007
    Posts
    95
    Quote Originally Posted by Fang
    Have you used obj.setAttribute('class', 'text');?
    If so use obj.className='text';
    Actually I had.

    Will try that out.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles