Home  >  Article  >  Web Front-end  >  DIV hiding problem, please help_html/css_WEB-ITnose

DIV hiding problem, please help_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:24:491099browse



< ;div title="${list.CD_Name}" style="padding:10px; display:none;" id="CD_ID${list.CD_ID}">


${list_in.CD_Name }



The DIV attribute is set but not hidden. I originally wanted to use JS to dynamically hide this, but it didn't happen.
My JS code
document.getElementById("CD_ID1").style. display="none";


Reply to discussion (solution)

Are you sure the id is cd_id1? items="${l}" var="list">