Solved

Relational Select Menu

Posted on 1998-08-18
2
193 Views
Last Modified: 2008-03-17
http://members.home.net:80/kerrie/insurance/index.html

I'm sort of confused with this relational thang!

I need to alert if user selects an article but no month "Select month"...  

I have succeeded with a alert if user selects no article (SelectMenu.SelectPrimary) but am getting confused with working with (SelectMenu.SelectSecondary).

As always, thanks for the advice...Kerrie
0
Comment
Question by:kerrie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
jbirk earned 50 total points
ID: 1269301
OK, here is the corrected code.  I'm just changing the function changePage():

function changePage()
{
 menuNum = document.SelectMenu.SelectPrimary.selectedIndex;
 if (menuNum == 0)
  {alert("Please select a category from the menu.");
   document.SelectMenu.SelectPrimary.focus();
   return;
  }
 else
  {i = document.SelectMenu.SelectSecondary.selectedIndex;
   if (i==0)
     {alert("Please select a month from the menu.");
      document.SelectMenu.SelectSecondary.focus();
      return;
    }
   else
    window.location.href = url[i];
  }
}

That should od it for you!
-Josh
0
 

Author Comment

by:kerrie
ID: 1269302
Thank you so much - sorry the code was such a mess.  Have a great night... Kerrie
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Print Rhino Java Array in Javascript 1 31
Timer on div 5 23
javascript form submition 2 21
How do I Enable submit button only if listbox has items 4 29
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question