#1
  1. No Profile Picture
    yashika
    Guest
    Devshed Newbie (0 - 499 posts)
    I have a dropdown listbox, I wanna know that how do i call a particular function after i selects an option from the listbox,Its not the links in listbox, the box options are the choices given to users.To every option there is a different funtion called. If you guys have the code,pls let me know i would appreciate your help..
    Thanks very much
  2. #2
  3. No Profile Picture
    scollo
    Guest
    Devshed Newbie (0 - 499 posts)
    Could you show us the code for the <SELECT> element, and give an example of what you would like to do when a selection is made?
  4. #3
  5. No Profile Picture
    KingArtha
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi!

    If the name of the select box is selectVal then on the event onChange you can call a javascript function.Like this...

    function checkValues()
    {
    //(when GHI is selected a new window is opened)

    if (selectVal.selectedIndex == 2)
    {
    window.open("../Main.asp","testWin","scrollbars,resizable,status=yes,width=600,height=445");
    }

    }

    when the third value is selected a new window is opened.


    ------------------

Similar Threads

  1. Executing External Javascript from a Popup window. - How do I...
    By Bitzen in forum JavaScript Development
    Replies: 3
    Last Post: August 2nd, 2003, 04:31 AM
  2. finding all Javascript objects and functions in a page
    By WESuydam in forum JavaScript Development
    Replies: 4
    Last Post: July 31st, 2003, 01:29 PM
  3. Using functions within functions.
    By winddancer in forum PHP Development
    Replies: 7
    Last Post: May 4th, 2003, 11:25 AM
  4. Trying to combine two different javascript functions
    By james555 in forum JavaScript Development
    Replies: 4
    Last Post: December 6th, 2002, 12:31 AM
  5. multiple javascript functions
    By scream in forum JavaScript Development
    Replies: 0
    Last Post: May 14th, 2001, 12:23 PM

IMN logo majestic logo threadwatch logo seochat tools logo