我的示例代码:
`<input type="text" class="text" id="TxtName" runat="server" value="Name" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Name';}" />`
我只需要text在设置为此文本框的值后不应编辑输入类型.
text
html javascript c#
c# ×1
html ×1
javascript ×1