I have this checkbox:
<input type="checkbox" name="suspended" id="s" value="<?php echo $udata['suspended']; ?>" <?php echo $suspended; ?>>
And this textarea:
<textarea name="suspendreason" id="sr" style="height:60px" class="field"><?php echo $udata['suspendreason']; ?></textarea>
My question is, how can I make the textarea READONLY whenever the #s checkbox is unchecked?
With your requirement, something like this: