# Auto\_complete field problem?

**URL:** <https://www.ruby-forum.com/t/auto-complete-field-problem/121057>\
**Category:** Rails\
**Created:** [November 23, 2007, 10:17am UTC](https://www.ruby-forum.com/t/auto-complete-field-problem/121057 "2007-11-23T10:17:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 23, 2007, 10:17am UTC](https://www.ruby-forum.com/t/auto-complete-field-problem/121057/1 "2007-11-23T10:17:47Z")

</div>

\<%= text\_field\_with\_auto\_complete :object,  
:method,  
:class=\>“size”,  
:onChange=\>“load\_details()” %\>

in auto\_complete text box if i press 1 then the list which has 1 as  
first letter will be listed, if i select any one like 1632( for  
example… ) ,then my javascript alert value is 1 (but it should be  
1632).

how to solve this ?..
