In ASP.NET MVC, I wrote below code to give the textbox a initial value:
@Html.TextBoxFor(p => p.WEIGHT, new { tabindex = "140",
@class = "mustInputText noime w50",
maxlength = "8", @Value = "0",
rule = "InputOnlyNum" })
And the Html source is as follows:
<input Value="0" class="mustInputText noime w50" id="WEIGHT" maxlength="8"
name="WEIGHT" rule="InputOnlyNum" tabindex="140" type="text" value="" />
I notices that there are two Value attributes in the "input" tag:
Value="0" and value=""
How to make it only show one value attribute?