チェックボックスやラジオボタン等の値でformのactionを変更
function hoge() { if( "hoge" == document.getElementById("hoge").value ) { document.getElementById("form").action = "hoge1.html"; } else { document.getElementById("form").action = "hoge2.html"; } }
function hoge() { if( "hoge" == document.getElementById("hoge").value ) { document.getElementById("form").action = "hoge1.html"; } else { document.getElementById("form").action = "hoge2.html"; } }