<p><input type="checkbox" name="chk1" onclick="setDisplay()">表示切替</p>
<div id="iupd" style="display:none"><!--表示切替用-->
test
</div>
<script type="text/javascript">
function setDisplay(){
document.getElementById("iupd").style.display = "block";
}
</script>
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme