【发布时间】:2011-12-15 11:05:15
【问题描述】:
我想用 jquery 清除文本框的默认值。
@Html.TextBox("password", ***@Views.Resource.Password***, new { @class = "cssClass" })
【问题讨论】:
-
渲染出来的html长什么样子?
-
它看起来像@Views.Resource.Password 中的任何内容
-
这不是渲染出来的html的样子,而且因为我没有asp经验,所以不知道结果会是什么样子。 Ali 的解决方案可能有效,但您应该为其分配一个 id 并改用它。
标签: jquery asp.net-mvc html.textbox