I wrote an HTML5 toolkit for ASP.NET MVC that you simply add to your project that will provide you with the necessary functionality.
Once you have added the library to your project, you can use it in your view like this:
@Html.Html5TextBox("txtOne", InputType.Color)
This will return a text box element that looks like this:
<input type="color" id="txtOne" name="txtOne">
There is a lot of support for many other HTML5 input types - check out the post for more information.
source share