asp.net - on click for asp:textbox? -



asp.net - on click for asp:textbox? -

im looking way have textbox contain bit of text until users clicks come in own text. search field , client wants textbox have "search stock" in textbox, when users clicks in it, becomes null can come in own criteria. cant see onclick or similar in designview textbox though, hints?

thanks

<asp:textbox runat="server" value="search stock" id="textbox1" onfocus="if (this.value == 'search stock') this.value = ''; " onblur="if (this.value == '') this.value ='search stock'; " />

asp.net visual-studio-2010

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -