<script language="javascript" >
function load_details()
{
var input=document.getElementById(''object_method'').value;
alert(var);
}
</script>
<%= 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 ?.....
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---