I'd like to implement a dropdown list that actually shows a preview for the type of selected font type. For example, Arial will displayed with "Arial" as the text but with the Arial font face. Any idea how I can go about accomplishing it? Right now my code looks something like this,
<%=Html.DropDownList("ChartFont", new List<SelectListItem>
{
new SelectListItem{Text="Arial", Value = "Arial"},
new SelectListItem{Text="Calibri", Value = "Calibri"},
new SelectListItem{Text="Tahoma", Value = "Tahoma"},
new SelectListItem{Text="Verdana", Value = "Verdana"},
new SelectListItem{Text="Times New Roman", Value = "Times New Roman"}
}) %>
Any help is much appreciated guys!! Thank you!