Results 1 to 2 of 2

Thread: Combo Box Won't Go Past 3 Questions

  1. #1
    Join Date
    Oct 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Combo Box Won't Go Past 3 Questions

    I am using the combo box script (dynamicdrive.com/dynamicindex17/comboviewer.htm)

    I have a problem though: The box won't go past 3 questions. I did the div for the fourth question and the answer just doesn't display. I have 10 questions prepared for it. Advice?

    My page is: http://www.prioritywindows.com/HelpMe.html

    Thank you.
    Last edited by justaskingaquestion; 10-28-2008 at 07:32 PM.

  2. #2
    Join Date
    Dec 2006
    Posts
    47
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default Simple demo

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD><TITLE>Tu3.18p37</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=UTF-8">
    <STYLE type=text/CSS>

    </STYLE>

    <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
    <BODY scroll="auto">

    <DIV id="AsHere">_</div>
    <SCRIPT type="text/javascript">
    var Qs=['seven','six','five','four','three','two','0ne'];
    var As=['cyan','purple','pink','blue','green','yellow','red']

    var M='<select onchange="getA(this.selectedIndex)">'
    for(i=0;i<Qs.length;i++){M+='<OPTION>'+Qs[i]+'</OPTION>'}

    M+='</select>';
    document.write(M)
    function getA(x){document.getElementById('AsHere').innerHTML=As[x]}
    </SCRIPT>



    </BODY></HTML>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •