urgent help -----onchange is not working

<form action="/js" method="post"> <input id="text_i" onchange="alert('hai');" size="30" type="text"/> <input name="commit" type="submit" value="Click Me!" /> </form>

i am using firefox 2.0.0.6 the above html will open a a text box and button

step 1: enter into box 'aaa' & press button 'Click Me' step 2: enter into box 'aab' & press button 'Click Me' step 3: now if you enter 'a' into box then autocomplete drop down will open so you can select from that(which r given previously)

but alert is not working

<form action="/js" method="post"> <input id="text_i" onchange="alert('hai');" size="30" type="text"/> <input name="commit" type="submit" value="Click Me!" /> </form>

i am using firefox 2.0.0.6 the above html will open a a text box and button

step 1: enter into box 'aaa' & press button 'Click Me' step 2: enter into box 'aab' & press button 'Click Me' step 3: now if you enter 'a' into box then autocomplete drop down will open so you can select from that(which r given previously)

If I remember correctly onChange on a text input only fires where the
field loses focus.

Fred

Frederick Cheung wrote:

If I remember correctly onChange on a text input only fires where the field loses focus.

Fred

yes ,but why onchange is not triggered when the field loss focus at autocomcomplete only ?

actually that the onchange is not triggered when i select something in the browsers autocomplete list?