【发布时间】:2018-10-08 05:48:31
【问题描述】:
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>
【问题讨论】:
标签: jquery html select drop-down-menu