php-webdesign
asked on
IE: set style.display with javascript
Hey,
i got the following javascript for hiding and displaying a table-row:
function openItem (itemid){
document.getElementById('p lus' + itemid).style.display = 'none';
document.getElementById('m in' + itemid).style.display = 'inline';
document.getElementById('i tem' + itemid).style.display = 'table-row';
}
function closeItem (itemid){
document.getElementById('p lus' + itemid).style.display = 'inline';
document.getElementById('m in' + itemid).style.display = 'none';
document.getElementById('i tem' + itemid).style.display = 'none';
}
Works like a charm in FF, but failes in IE... can anybody help me with this?...
Mike
i got the following javascript for hiding and displaying a table-row:
function openItem (itemid){
document.getElementById('p
document.getElementById('m
document.getElementById('i
}
function closeItem (itemid){
document.getElementById('p
document.getElementById('m
document.getElementById('i
}
Works like a charm in FF, but failes in IE... can anybody help me with this?...
Mike
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks mate, works like a charm :D
table-row - the equivalent of the default styling of the HTML tr element. Not supported by IE.
http://htmldog.com/reference/cssproperties/display/