0

Possible Duplicate:
Do we have getElementsByClassName in javascript?

I am receiving an error below in IE only, not in any other browser:

Object doesn't support property or method 'getElementsByClassName' 

So I am assuming it does not suppose getElementByClassName in IE. My question is then what should be an equivalent to use in stead of this in example below:

var numb = document.getElementsByClassName('num_questions');
Community
  • 1
  • 1
Manixman
  • 307
  • 6
  • 19

2 Answers2

0

try this

var numb = $('.num_questions');
Aarif Qureshi
  • 474
  • 1
  • 3
  • 13
0

IE < 9 does not have getElementsByClassName support.

Since you are using jQuery you can achieve the same by $('.num_questions')

Arun P Johny
  • 384,651
  • 66
  • 527
  • 531