How to implement hidden tags in php: first open the corresponding PHP sample file; then make a mark flag in php and pass it over; finally add "
>" is enough.The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
Specific questions:
About the problem of hiding the div tag in PHP
<div id="tes">test</div> <input type="submit" onclick="a();" value="test" /> <?php function a(){ echo "<script type='text/javascript'> document.getElementById('tes').style.display='none'; </script>"; } ?>Copy after loginWhat's wrong? If this function needs to be modified, how should it be modified?
Solution:
1. Because the hiding of the div tag itself is controlled by css style, that is,
Related labels:source:php.cnPrevious article:What to do if php session cannot be used Next article:How to convert array to string in phpStatement of this WebsiteThe 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.cnLatest Articles by Author
2023-04-24 11:00:01 2023-04-24 10:55:51 2023-04-24 10:52:44 2023-04-23 17:40:51 2023-04-23 17:38:02 2023-04-23 17:34:02 2023-04-23 10:15:45 2023-04-23 10:10:52 2023-04-21 16:01:59 2023-04-21 15:58:01Latest IssuesGroup MySQL results by ID for looping over I have a table with flight data in mysql. I'm writing a php code that will group and displ...From 2024-04-06 17:27:5601406Related TopicsMore>