ドロップダウンで取得した値を表示するのに苦労しています。昨日JSの学習を始めたばかりです...乾杯![eta] 問題は、私のコードのどこが悪いのかということです。
<!doctype html>
<html><body>
<script src="jquery.js">
$(function checkDropdown() {
var selects= $("#id1 option:selected").val();
document.getElementById("filler").innerHTML= selects;
});
</script>
<form name="f1">
<select id="id1">
<OPTION Value="none">None</OPTION>
<OPTION Value="one">One</OPTION>
<OPTION Value="two">Two</OPTION>
</select></form>
<p id="filler">Replace this text</p>
</br></br>
<button onClick="checkDropdown()"> CLICK ME </button>
</form>
</body></html>
最終的には、オプションの値を実際の数値に置き換えて乗算したいと考えています。