KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to add css class and id in @Html.TextBox mvc4 at the same time. I try @Html.TextBox("name", new { id = "name"}, new { @class = "text-field" }) but as result I get <input class="text-field" id="name" name="name" type="text" value="{ id = name }"> I dont need attribute value here. I need to get <input type="text" value="" name="name" id="name" class="text-field" />
Tags (comma-separated)
Save Edits
Cancel