Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Relational Select Menu

Posted on 1998-08-18
2
Medium Priority
?
201 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 200 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

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

610 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