How to Create a Select Font Drop Down List With a Preview?

Hdaorobf

New Member
I would l like to create a select drop down list to be able to select a font. In this list, I would like each font option to be shown in that style as a preview of the font.\[code\]<select> <option class="Times-New-Roman" value="http://stackoverflow.com/questions/15694406/Times-New-Roman">Times New Roman</option> <option class="Verdana" value="http://stackoverflow.com/questions/15694406/Verdana">Verdana</option> <option value="http://stackoverflow.com/questions/15694406/Comic-Sans-MS">Comic Sans MS</option> <option value="http://stackoverflow.com/questions/15694406/WildWest">WildWest</option> <option value="http://stackoverflow.com/questions/15694406/Bedrock">Bedrock</option></select>\[/code\]Above is a basic drop down box, of which each font type has it's own class name, however cannot seem to work out how to make it so that each class name has it's own font which will show in the drop down list.Thank you for any time spent in helping find a solution.Best Regards,Tim
 
Back
Top