var obj = document.getElementById(objName);
switch ( obj.style.visibility ) {
case "hidden":
obj.style.visibility = "visible";
break;
default:
obj.style.visibility = "hidden";
}
}
================================================================
<input type="checkbox" name="c10" value="Y" onClick="show_div('c10_text');" />其他:
<input type="text" name="c10_text" value="" ID="c10_text" style="position:absolute;visibility:hidden;" />
沒有留言:
張貼留言