troubleshooting Question

IE: set style.display with javascript

Avatar of php-webdesign
php-webdesign asked on
3 Comments1 Solution8374 ViewsLast Modified:

i got the following javascript for hiding and displaying a table-row:

function openItem (itemid){
      document.getElementById('plus' + itemid).style.display = 'none';
      document.getElementById('min' + itemid).style.display = 'inline';
      document.getElementById('item' + itemid).style.display = 'table-row';
function closeItem (itemid){
      document.getElementById('plus' + itemid).style.display = 'inline';
      document.getElementById('min' + itemid).style.display = 'none';
      document.getElementById('item' + itemid).style.display = 'none';

Works like a charm in FF, but failes in IE... can anybody help me with this?...

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros