currently, I'm trying to have the user select a font from the drop-down box and when the pick lets say Times New Roman, all the text on the page changes to that font. 我已经掌握了基础知识,但我无法弄清楚放置的顺序。
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
//text
$("#font option:selected").val();
</script>
</head>
<body>
<div id="about_turtles">
<center><p>This is a test</p></center>
</div>
<div id="font_buttons">
<select id="font">
<option value="helvetica">Helvetica</option>
</select>
</div>