Hi,
I've come across a problem when trying to loop through all divs on a page.
I can grab all the divs using $('div') in IE but not in firefox.
I did the following as a test :-
$(function() {
var divs = document.getElementsByTagName('div');
alert(divs.length)
var divs2 = $('div')
alert(divs2.length)
});
The output in IE is :-
29 29
The output in firefox is :-
29 1
Am I missing something?