Subject: onChange event
Posted By: mcinar Post Date: 5/10/2007 8:47:03 AM
Hi All,

I am using the "onChange" event in <SELECT> tag.

When I pick the first item in the drop down list, the "onChange" event fires.  But if I pick the same item again, it doesn't fire.

I believe this is the normal process.

But, how I can make it work?

Thanks for your help,

<HTML>
<HEAD>
    <script language=javascript>
    function ShowValue()
    {
   alert(form1.DD1.value);         
    }

    </script>
</HEAD>

<BODY>

<form name=form1>
    <select name=DD1 onChange="javascript:ShowValue()">
        <option value=1>Item 1</option>
        <option value=2>Item 2</option>
        <option value=3>Item 3</option>
    </select>
</form>

</BODY>
</HTML>


MCinar

Love all the creatures because of the creator.
Reply By: rakesh_mscit Reply Date: 5/24/2007 6:23:30 AM
You can try onclick event

Regards,
Rakesh
Reply By: rakesh_mscit Reply Date: 5/24/2007 6:28:41 AM
i mean onclick for option tag see the following link

http://www.w3schools.com/tags/tag_option.asp

Regards,
Rakesh
Reply By: mcinar Reply Date: 5/24/2007 8:46:42 PM
Thanks Rakesh.  I need something different.

MCinar

Love all the creatures because of the creator.

Go to topic 60904

Return to index page 1