Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2004
    Posts
    31

    Unanswered: Combo Box Event problem..

    Hi, I have a webpage coded in PHP that uses a comboBox. I simply wish to know what code is used to fire an event when a particular value is selected. is it OnChange() ? OnClick()?
    Thank you in Advance..
    Regards

  2. #2
    Join Date
    Jan 2004
    Location
    India
    Posts
    168
    You can use OnClick()

    regards
    Rajesh
    Freelance and Technology Consultant
    -------------------
    Dreams are for ever
    -------------------

  3. #3
    Join Date
    Jun 2004
    Posts
    31
    Well, it fires the event when i click the comboBox, but not when I select a value! HELP!!

  4. #4
    Join Date
    Jan 2004
    Location
    India
    Posts
    168
    Sorry it was my mistake.
    You have to use onChange()
    eg:

    <script language="JavaScript">
    function winopen()
    {
    alert("changed");
    }
    </script>
    <form NAME="frm" METHOD="POST" ACTION="">
    <SELECT NAME="openwin" onChange="winopen();">
    <OPTION VALUE="1">Hello</OPTION>
    <OPTION VALUE="2">Go</OPTION>
    </SELECT>
    </form>

    Regards
    Rajesh
    Freelance and Technology Consultant
    -------------------
    Dreams are for ever
    -------------------

Posting Permissions

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