Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
  <select id="family">
    <option value="Georgia"             size="24pt">Georgia</option>
    <option value="Times New Roman"     size="16pt">Times New Roman</option>
    <option value="HelveticaNeue-Light" size="10pt">Helvetica Neue Light</option>
  </select>
</body>
</html>
 
function setFamily() {
  $('#family').css('font-family', $('#family :selected').val());
  $('#family').css('font-size',   $('#family :selected').attr("size"));
}
$("#family option").each(function() {
  $(this).css('font-family', $(this).val())
  $(this).css('font-size',   $(this).attr("size")) });
setFamily();
$('#family').bind("change keypress", setFamily);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers