auto_complete div remains hidden

You just need to change your css to..

style.display="block" or "inline"

OR

style.display=

The latter might be needed for IE8.

This is a CSS question not a rails question though.