Hi, I have a textbox which can auto resize its height depending on the amount of texts users enter into the textbox. The textbox is working fine on IE, but when i try to debug using Chrome or Firefox, no matter what keys i enter (alphanumerics, enter, backspace, etc), the height keeps on increasing. Is it because I'm calling the wrong javascript events on the textbox??
Below is my asp Textbox
<asp:TextBox ID="tbAttender" runat="server" Columns="45"
CssClass="tbNoScrollBar" onkeydown="SettingHeightAttender(this);"
onkeyup="SettingHeightAttender(this);" Rows="1" TextMode="MultiLine"
Height="150px">
</asp:TextBox>
Below is the javascript i used to make the textbox auto height
function SettingHeightAttender(tbAttender) {
if (tbAttender.scrollHeight >= 150) {
tbAttender.style.height = tbAttender.scrollHeight + "px";
document.getElementById("<%=hdntbAttender.ClientID%>" ...
Go to the complete details ...