I need to assign multiple classes to an MVC TextBox HTML helper, so it functions the same as when assigning multiple classes to an HTML element.
i.e.: <div class="class1, class2"></div>
The following does not work properly:
@Html.TextBoxFor(x => x.Name, new { @class = "class1, class2" })
Note: I need to add both class names to a single element in order to trigger different jQuery functions. Any advice would be greatly appreciated.