boostrap的方法
請導入boostrap的CDN
隱藏的內容
<div class="erpinside accordion-collapse collapse" aria-labelledby="ERP_heading"
data-bs-parent="#accordion_main" id="erpinside">
<span>123321</span>
顯示內容的按鈕
<button type="button" class="topbutton" data-bs-toggle="collapse" data-bs-target="#erpinside"
aria-expanded="true" aria-controls="ERP_manage">
<div class="indent"><strong>ERP對應管理</strong></div>
</button>
靠id接起來
javascript方法
<Script>
function selectprl() {
if (choseerp.value == "PRL" || choseerp.value == "Tommy") {
Configuration_visibla()
}
}
function Configuration_visibla() {
document.getElementById("edit").style.display = "flex";
}
隱藏的內容
<div class="container" style="display:none" id="edit">
<span> 我在這 </span>
</div>