I have been trying to use
<script language="javascript" type="text/javascript">
function check_length()
{
var x = document.getElementById("tbDescription").value;
alert(x);
}
</script>
to get the value of this text box
<asp:TextBox ID="tbDescription" runat="server" Height="78px" TextMode="MultiLine" MaxLength="10"
Width="363px" ValidationGroup="quickQuote" onkeypress="check_length()" CausesValidation="true"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="tbDescription"
Display="none" ErrorMessage="You must give a description of your shipment." Font-Bold="True"
SetFocusOnError="True" ValidationGroup="quickQuote"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender id="co_rfvDescription" runat="server" TargetControlID="rfvDescription"></cc1:ValidatorCalloutExtender>
but get an object required error in IE and document.getElementById("tbDescription") has no properties in FireFox. I have tried using the single, double quotes, and nothing around the tbDescription in the javascript function, but none of the 3 helps.