HTML :<Select onchange="javascript:your_script_for_submit()"><option>....

解决方案 »

  1.   

    many example outside.....
    try: http://www.kmb.com.hk/chinese.php?page=searchchoose HK Island, the district for HK Island will be displayed on the second pull down menuremember to give me point !!
      

  2.   

    大虾们:
       我只能用java语言,不能用HTML语言在WebObject上开发(虽然webobject上可以看到HTML语言。)    :(
       帮帮忙!基本上serverlet能实现的,webobjects都能实现。
      

  3.   

    use JSP but not HTML??
      

  4.   

    Do you know what Servlet /JSP can do?Servlet and JSP can be used only when the client browser use POST or GET (submit the form). If the client do not submit the form, you cannot get the user input. The only way to do is to add Javascript, when people select the item, the javascript submit the form to your servlet / jsp and you can get the input.
      

  5.   

    to cosmo(MoMo):
      我以前没有用Servlet/jsp开发过东西,java也才学了不久。现在用的开发平台虽然用java语言,但很多东西更java还是不一样的。
      如果用你的虽说的方法如何用代码实现呢?
      

  6.   

    <!-- put between the <head> and </head> -->
    <script>
    function submit_option1() {
      document.forms["YOUR_FORM_NAME"].submit();
    }
    </script>...
    <Select onchange="javascript:submit_option1()"><option>....nothing is related to Java. It is only html and javascript.