[Javascript] Select | Avoid changing to selected element

David Dorward david at dorward.me.uk
Mon May 15 10:41:17 CDT 2006


On Mon, May 15, 2006 at 05:27:38PM +0200, Simone Fumagalli wrote:
>   What I would like to do is to avoid the [select] element changing if my
>   function return false.

Keep track of the selectedIndex. Reset it in your event handler based
on the return value of the function you call.

-- 
David Dorward                                      http://dorward.me.uk




More information about the Javascript mailing list