Works in firefox but not IE8

Posted by creocare on Stack Overflow See other posts from Stack Overflow or by creocare
Published on 2010-05-04T00:30:29Z Indexed on 2010/05/04 0:38 UTC
Read the original article Hit count: 644

Filed under:
|
|

This is working fine in firefox but only closes the first page and then breaks in IE8. Firebug in IE8 says that x.item(o) is null. I can't figure out why this works in firefox but not IE. Thanks for any help.

pager(x=document.getElementsByName("pg1"));

function pager( x ) {
var curr = document.getElementById('showing');
$(curr).fadeOut('fast');
curr.id = 'hide';
$(x).fadeIn('slow');
x.item(0).id ='showing';
}

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ie8