I have a simple asp:textbox set up like this
<asp:TextBox runat="server" ID="tbxWarning" TextMode="MultiLine" Rows="4">
</asp:TextBox>
The SUBMIT button on the page does not become active until you scroll to the bottom of the textbox. This part works except that sometimes the textbox does not have enough data in it to make the textbox scrollable. How can I check (with either javascript or jQuery) wether or not the scrollbar in the textbox is enabled?
The JavaScript
.clientHeightproperty of a textarea (or any other element) tells you how many pixels can be seen. The.scrollHeightproperty tells how how many pixels can be scrolled. If they are equal, there’s no scrollbar.