# Default value using Autocompleter.local

**URL:** <https://www.ruby-forum.com/t/default-value-using-autocompleter-local/155479>\
**Category:** Rails\
**Created:** [December 12, 2008, 7:40am UTC](https://www.ruby-forum.com/t/default-value-using-autocompleter-local/155479 "2008-12-12T07:40:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adeel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@adeel](https://www.ruby-forum.com/u/adeel)\
**Post date:** [December 12, 2008, 7:40am UTC](https://www.ruby-forum.com/t/default-value-using-autocompleter-local/155479/1 "2008-12-12T07:40:38Z")

</div>

I’m using recipe 7 from Rails Recipes to get really fast auto-  
completion through Javascript.

I was previously using text\_field\_auto\_complete which lets me define  
a :value that appears in the field when the page is loaded - serving  
as a default value.

I’d like to preserve this using the "\<%= javascript\_tag(“new  
Autocompleter.Local(…”  
but I don’t know how to define a default value.

-a
