<script type="text/javascript">
window.onload=function(){
var form_name = document.getElementById('Contentquick_newmemapplyform');
if (form_name.pay_method.value=="eCash") {
document.getElementById("paybycash").style.display = "block";
document.getElementById("paybycard").style.display = "none";
} else {
document.getElementById("paybycash").style.display = "none";
document.getElementById("paybycard").style.display = "block";
}
};
</script>
使用 window.onload event 來決定要顯示的 div
沒有留言:
張貼留言