1

I need your help.

I need to be able to provide support to IE7 to recognize the function document.getElementbyClassName('select_wrapper')

such that it can work in sync with the following coding:

var y = document.getElementsByTagName('SELECT');

    for (var i = 0; i < y.length; i++) {

            y[i].onblur = function() {
                this.style.backgroundColor = '#FFFFFF'
                //document.getElementById('select_wrapper').style.backgroundColor = 'FFFFFF'
                getElementsByClassName('select_wrapper').style.backgroundColor = 'FFFFFF'
            }

            y[i].onfocusin = function() {
                this.style.backgroundColor = '#FFFFC4'
                //document.getElementById('select_wrapper').style.backgroundColor = 'FFFFC4'
                getElementsByClassName('select_wrapper').style.backgroundColor = '#FFFFC4'
            }
    }

html:

John Smith
  • 1,639
  • 11
  • 36
  • 51

1 Answers1

-1

use jQuery (http://jquery.com). Is Cross Browser and easy.

regisls
  • 529
  • 6
  • 23