Jquery Autocomplete

Jquery Autocomplete

Hi,
I'm trying to use jquery autocomplete for states. I want the user to type the state name but I want to receive the state code. TX for Texas, CA for California, etc...

All the examples I'm seeing on the internet just give a partial version of the program (the jquery part).

Is there's a complete simple sample somewhere ?