<form action="">
<dl class="dlTable">
<dt>利用方法</dt>
<dd><p class="attention">最初にご利用のタイプをお選びください。<small>下欄の入力内容が変わります。</small></p>
<label><input type="radio" name="entryPlan" value="法人会員" onclick="entryChange1();" checked="checked">法人会員</label>
<label><input type="radio" name="entryPlan" value="個人会員" onclick="entryChange1();">個人会員</label>
</dd>
</dl>
<dl id="houjin">
<dt>会員種別</dt><dd><span class="attention">法人会員</span></dd>
<dt>会社名</dt><dd><input type="text"></dd>
・・・
</dl>
<dl id="kojin">
<dt>会員種別</dt><dd><span class="attention">個人会員</span></dd>
<dt>氏名</dt><dd><input type="text"></dd>
・・・
</dl>
<div class="submit_area">
<button class="button1" type="submit" name="action" value="submit">Submit</button>
<button class="button2" type="reset" name="action" value="reset">Reset</button>
</div>
</form>
function entryChange1(){
radio = document.getElementsByName('entryPlan')
if(radio[0].checked) {
//法人会員
document.getElementById('houjin').style.display = "";
document.getElementById('kojin').style.display = "none";
}else if(radio[1].checked) {
//個人会員
document.getElementById('houjin').style.display = "none";
document.getElementById('kojin').style.display = "";
}
}
window.onload = entryChange1;