Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Rep Power

    Default 3 seperate "county" dropdown lists


    On my web page I have 3 seperate catorgories with 2 drop down lists in each, the first dropdown list in each catergory is for "county" here is a snippet of the code

    function fillCategory(){
    // this function is used to fill the category list on load
    addOption(document.drop_list.Category, "bedfordshire", "Bedfordshire", "");
    addOption(document.drop_list.Category, "berkshire", "Berkshire", "");
    addOption(document.drop_list.Category, "buckinghamshire", "Buckinghamshire", "");
    addOption(document.drop_list.Category, "cambridgeshire", "Cambridgeshire", "");

    This is saved on file "list.js", the problem I have is when I change anything on the code above the dropdown lists stop working

    I wanted to know if it is possible to use "list.js" to populate all 3 county dropdown lists or would I need "list.js" "list1.js" etc etc

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Rep Power


    Thankfully Java != Javascript.
    You have asked a Javascript question on a Java forum.

    r035198x(<----washes mouth for saying Javascript ... washes mouth again.

Similar Threads

  1. Java, Military Format using "/" and "%" Operator!!
    By sk8rsam77 in forum New To Java
    Replies: 11
    Last Post: 02-26-2010, 04:03 AM
  2. Replies: 2
    Last Post: 10-08-2009, 11:28 PM
  3. Replies: 2
    Last Post: 01-24-2009, 07:56 PM
  4. Replies: 1
    Last Post: 10-20-2008, 07:35 AM
  5. <core:forEach var="" begin="+<%=j%>+">???
    By freddieMaize in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-27-2008, 01:20 AM

Posting Permissions

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