My input box uses placeholder text and jquery to ensure it doesn't trigger until I add text (i.e. not placeholder text). I want to replace the input box with a text area but cannot get the jquery to work. With the textarea below, the submit button triggers regardless of whether I type in the text area.
<div class="RepForm-loggedin" >
<form name="RepForm" method="POST" action="<?php echo $this->newReply;?>">
<table name="RepFormTable" style="width:100%">
<tr>
<td style="width:100%">
//CURRENT INPUT BOX
<input type="text" rows="8" id="repContent" class="inputbox inputbox-title placeholder-soc-med" name="repContent" placeholder="Ask a question . . ."/>
//DESIRED REPLACEMENT TEXT AREA
<textarea type="text" rows="8" style="max-width:600px; width:100%" id="repContent" class="inputbox inputbox-title placeholder-soc-med" name="repContent" placeholder="Ask a question . . ."></textarea>
</td>
</tr>
<tr>
<td style = "text-align:right;">
<input type="submit" value="Submit" id="sendComment" class="dgrey-button">
</td>
</tr>
</table>
</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#sendComment').attr('disabled',true);
$('#repContent').keyup(function(){
if($(this).val().length !=0)
$('#sendComment').attr('disabled', false);
else
$('#sendComment').attr('disabled',true);
})
});
</script>