Forum: Ruby on Rails How to set value in text_field_with_auto_complete

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Carl Y. (Guest)
on 2006-04-27 09:47
(Received via mailing list)
I have a text_field_with_auto_complete that is working just fine,
except that I'd like it to retain whatever value is posted to it when
it reloads.  I can't find any API documentation on it.  Does anyone
here know offhand?

unknown (Guest)
on 2006-04-27 16:32
(Received via mailing list)
One simple way is to use an onchange event handler to make a cookie
using javascript which stores the value. Then javascript can also
retrieve the cookie onload. It depends on the requirements of your
site whether this is sufficient though.
This topic is locked and can not be replied to.