【发布时间】:2011-11-17 04:14:21
【问题描述】:
我有这个复选框:
<input type="checkbox" name="suspended" id="s" value="<?php echo $udata['suspended']; ?>" <?php echo $suspended; ?>>
还有这个文本区域:
<textarea name="suspendreason" id="sr" style="height:60px" class="field"><?php echo $udata['suspendreason']; ?></textarea>
我的问题是,当#s 复选框未选中时,我怎样才能使 textarea 只读?
【问题讨论】: