Select correct item on blur

Apr 13, 2011 at 3:24 PM

If I enter text in the input box, and then select different element on the page, the _hidden value isn't updated.

Suppose my data is:

id | text

1 | red
2 | blue
3 | green

user enters "blue" in input box, and then clicks "submit" button. _hidden value will be "blue" instead of 2.

If user enters "blue" and hits "tab" - then everything works as expected.

Is there a built in way to handle this?