[SOLVED]私はそれがcuboidCalc関数のコードでとoutputOne置き換える私はcuboidCalc をクリックしたときようにそれを作るしようとしているHTML/JavaScriptの
<!DOCTYPE html>
<html>
<body>
<p>volume only</p>
<input type="button" onclick="cuboidCalc()"> cuboidCalc <br>
<input type="button" onclick="cylinderCalc()"> cylinderCalc <br>
<input type="button" onclick="triPrismCalc()"> triPrismCalc <br>
<p id="outputOne"></p>
<p id="outputTwo"></p>
<script>
function cuboidCalc() {
document.getElementById("outputOne").innerHTML = "hight: <input type="number" id="hight" value="">";
}
function cylinderCalc() {
}
function triPrismCalc() {
}
</script>
でしたか?たった今? –