<asp:TextBox ID="TextBox2" runat="server" value="Your Text here" onfocus=" this.value = '';" onblur="if(this.value == '') ****{ this.value='?????'; }****"></asp:TextBox>
I want my text in textbox to disappear when i'm clicking in the textbox which i'm able to achieve by onfocus which i've used....
But,when the textbox is empty I want the previous entered value to appear and if it's d first time i.e.. if I've not entered any text previously then the default value("Your Text here") should appear.
Eg:I am clicking on the textbox for the first time and entering value '80' and then again i'm clicking on the textbox,the value inside should clear and if i'm not entering any value and clicking outside then '80' should show on textbox instead of 'Your Text here'.
Thanking you.