This applies, only if your textbox is asp.net textbox, if so then:
assume this is your text box in .aspx:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
then just wrap your js code into a js function like below:
<script type="text/javascript">
function changeHeight() {
var t = document.getElementById('scrollable-content');
t.scrollTop = t.scrollHeight;
}
</script>
Make sure to add this script part under your page's heade section...
then go to your asp.net page's page_load event in code behind side and add code like this:
if(!Page.IsPostBack)
TextBox1.Attributes.Add("onchange", "javascript:changeHeight();");
done, build and run your app and let me know if this is what you wanted to do...