Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Posts
    6

    Talking Unanswered: Capture text selected from scroll down menu

    Hi..
    hw am i going to capture text selected from the scroll down menu which is on the same page..

    this is my scroll down menu...
    <% out.println("<select name='site_name'>"); out.println("<option>=====Actual Site Name=====</option>"); for(int i=0;i<actualAL.size();i++) { out.println("option>"+actualAL.get(i)+"</option>"); } out.println("<option>=====Pending Site Name=====</option>"); for(int j=0;j<pendingAL.size();j++) { out.println("option>"+pendingAL.get(j)+"</option>"); } out.println("</select>"); %>

    "Contract Insert: " is wher i wan to place the capture selected text.. <input type="hidden" name="message" value="Contract Insert: ">

    cheers

  2. #2
    Join Date
    Aug 2003
    Posts
    40
    Isn't this a selection list and not a menu..
    Anyway, you can use Javascript for this by iterating thru your
    selection list and picking the value of the option that is selected.
    Then, put that value in your "hidden" object.

    Do you know how to do this. If not, let me know and I'll provide some
    JS code.

  3. #3
    Join Date
    Dec 2003
    Posts
    6
    Originally posted by olerag
    Isn't this a selection list and not a menu..
    Anyway, you can use Javascript for this by iterating thru your
    selection list and picking the value of the option that is selected.
    Then, put that value in your "hidden" object.

    Do you know how to do this. If not, let me know and I'll provide some
    JS code.
    hi,

    pls provide mi the JS code.. i'm not very sure of hw to do it.. thks..

    cheers

Posting Permissions

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