ASP.NET文本框呈现为标准HTML输入(使用type ="text"),实现所要求的唯一方法是通过javascript:
var textbox = document.getElementById('foo');
textbox.focus();
textbox.value = textbox.value;
Run Code Online (Sandbox Code Playgroud)
其中foo是生成的输入的id:
<input type="text" id="foo" name="foo" value="some text" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9168 次 |
| 最近记录: |