<form name="frm" action="" method="post">
<input type="checkbox" value="1" onclick="if(document.frm.c.disabled==true){document.frm.c.disabled=false;}else{document.frm.c.disabled=true;}">
<input type="button" name="c" value="check1" onclick="alert('aaaa');" disabled>
</form>
function change_pulldown(){
pulldown_option = document.getElementById("hoge").getElementsByTagName('option');
for(i=0; i<pulldown_option.length;i++){
if(pulldown_option[i].value == "クラブマンハイレッグ"){
pulldown_option[i].selected = true;
break;
}
}
}
<select id="hoge">
<option value="イングラム">イングラム</option>
<option value="グリフォン">グリフォン</option>
<option value="タイラント2000">タイラント2000</option>
<option value="クラブマンハイレッグ">クラブマンハイレッグ</option>
</select>
<head>
<script language="javascript">
function onPriviousPage() {
var a = document.getElementById("idName").innerHTML;
a = document.forms[0].abc.value;
a = document.bbb.abc.value;
location.href=a;
}
</script>
</head>
<body>
<form name="bbb">
<input type="button" value="PriviousPage" onclick="onPriviousPage()">
<br><p><%= aid %></p>
<% if(aid.equals("1")){ %>
<p id="idName">sample.html</p>
<input type="hidden" name="abc" value="sample.html"/>
<% } else { %>
<p id="idName">sample3.html</p>
<input type="hidden" name="abc" value="sample3.html"/>
<% }%>
</body>
最終更新:2013年07月08日 02:56