ess14 Posted December 20, 2007 Share Posted December 20, 2007 Is there some reason why you cant do the followng in javascript? function showOne(elem_id){ hideAll( ); elemOn( elem_id ); elemOn( elem_id+"T" ); } is it okay to call the elemOn function twice with differant variables? for some reason it will only do the one that comes first. not a big javascript guy so maybe its not possible? any more information or help? Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted December 20, 2007 Share Posted December 20, 2007 it depends what the elemOn does Quote Link to comment Share on other sites More sharing options...
ess14 Posted December 20, 2007 Author Share Posted December 20, 2007 function elemOn(elem_id){ if(document.getElementById(elem_id)) document.getElementById(elem_id).style.display = "block"; } should it just run it twice with the differant variable names? Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted December 20, 2007 Share Posted December 20, 2007 it should work if you got the id names right Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.