日期:2014-05-18 浏览次数:20635 次
<input type="checkbox" value="1" onclick="c(this)" />
<input type="text" id="tx1" value=""/>
<script>
function c(obj)
{
if(obj != null)
document.getElementById("tx1").style.display = obj.checked==true ? "" : "none";
}
</script>