这是一段使用 JavaScript 实现的示例代码:
<html>
<head>
<script>
function showInput(element) {
if (element.value === "Option1") {
document.getElementById("input1").style.display = "block";
document.getElementById("input2").style.display = "none";
} else if (elem