I'm trying to make a javascript call in a text box as shown bellow
<asp:TextBox ID='Textbox1' runat='server'></asp:TextBox>
I need to make the user input in such a way that user cannot put more than 9 digit before point and 9 digits after point. For example 123456789.123456789 this is the maximum length that a user can enter. I need to do it in keypress or keyup event. Please help me how to do it.