J
John Grandy
I wrote a function to populate my dropdowns on the client-side.
The function adds <option> elements to the <select> only if none are
initially present.
I call the population function from either the onfocus or onclick event of
the <select> as follows :
onclick="populateDropdown(this);return true;"
It works in Firefox.
In IE, the dropdown is populated but the default handler for the click event
is not invoked, thus requiring the user to click the dropdown twice : once
to populate it and once to drop it down.
Does anyone know what is going on and a workaround for what appears to be an
IE bug ?
The function adds <option> elements to the <select> only if none are
initially present.
I call the population function from either the onfocus or onclick event of
the <select> as follows :
onclick="populateDropdown(this);return true;"
It works in Firefox.
In IE, the dropdown is populated but the default handler for the click event
is not invoked, thus requiring the user to click the dropdown twice : once
to populate it and once to drop it down.
Does anyone know what is going on and a workaround for what appears to be an
IE bug ?