Use javascript to achieve your goal.
I have used jQuery library.
$(function() {
$("#list_box_id").live("change", function() {
var e = $(this);
var selectedValue = e.val();
e.hide();
$("#input_field").show().find("input").val(selectedValue);
})
});
this is not the perfect solution you have to code it according to ur
requirement.
thanks
abhis
On Tue, Dec 7, 2010 at 10:58 AM, Saravanan Ravi <[email protected]> wrote:
> I have one dought...I want use list box..when clicked the list value it
> automaticaly set in the textbox.how to write coding for this
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.