set The DIV attribute is not hidden. I originally wanted to use JS to dynamically hide this, but it didn't work.
My JS code
document.getElementById("CD_ID1").style.display="none";
Are you sure the id is cd_id1?
Are you sure
id="CD_ID${list.CD_ID}"
The id must be the CD_ID character.
Are you sure the id is cd_id1?
Are you sure
Is there a problem with the order of code execution? The page was executed before it was generated.
document.getElementById("CD_ID1") .style.display="none";
Add an alert in front of the setting code to see if the div is already displayed when the dialog box pops up.
<script> </p> var items = document.getElementsByName('cd_id'); <p class="sougouAnswer"> for( var i = 0 ; i < items.length; i ) items[i].style. display='none'; <br /> <br /> </script>
Are you sure the id is cd_id1? Are you sure
Is there a problem with the order of code execution? The page is executed before it is generated.
document.getElementById("CD_ID1").style.display="none";
Add an alert in front of the set code and see what the div looks like when the dialog box pops up. It's not already shown.
Already shown
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn