2009-01-16 11 views

Antwort

7

Verwenden Sie eine beliebige Anzahl von Plugins jQuery ein Textfeld zu füllen. Hier sind zwei:

+1

1+, für Farbtastic – Cleiton

+0

erwähnt haben Wow, Mischas Beispiel so hässlich ist diese im Vergleich zu. – ChaosPandion

7

Es ist nicht supported von jedem Browser noch nicht, aber man konnte die HTML-5-Farbeingabe verwenden:

<input type="color" name="favcolor" value="#ff0000">

0
@Html.EditorFor(model => model.Color, new { htmlAttributes = new { @class = "form-control", required = "required", type = "color", style = "width:40px;padding:0;" } })