ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • yes/noによって変わるJAVASCRIPT
    카테고리 없음 2012. 7. 20. 13:06

    <p>今後、当施設をご利用する予定はありますか?</p>

    <input type="radio" name="q1" value="q1|a1" onClick="L1.style.display='none';L2.style.display='block';L6.style.display='none';"/>YES &nbsp;&nbsp;

    <input type="radio" name="q1" value="q1|a2" onClick="L1.style.display='none';L2.style.display='none';L6.style.display='block';"/>NO

    <div id="L1">

    <font color="blue">2 ~ 9.</font> <font color="green">性別を選択したら変わります。</font><br><br> 

    </div>

    <div id="L2" style="display: block; ">

    <font color="blue">2. (YESの場合) でYESと答えた方にお聞きします</font><br> <input type="radio" name="q5" value="q5|a1">1<input type="radio" name="q5" value="q5|a2">2

    <font color="blue">

    <br>3. 質問

    <br>4. 質問....

    <br>5. 質問.....

    </font>

    <br /><br />

    <font color="red">6 ~ 9. NOの場合の質問です。</font><br><br> 

    </div>

    <div id="L6" style="display: none; ">

    <font color="red">2 ~ 5. YESの場合の質問です。.</font><br><br> 

    <font color="blue">6. (NOの場合) でNOと答えた方にお聞きします</font><br> <input type="radio" name="q6" value="q6|a1">1 <input type="radio" name="q6" value="q6|a2">2

    <font color="blue">

    <br>7. 質問....<br /><input type="text">

    <br>8. 質問....<br /><input type="text">

    <br>9. 質問....<br /><input type="text">

    </font>

    <br><br>

    </div>

Designed by Tistory.