Abder-Rahman Ali wrote:
> I'm creating a very simple Rails application where I enter "First
> number" and then "Second number" and get the result in the "Sum".
> 
> Those are some files:
> 
> show.html.erb: http://pastie.org/private/1cydign77xnijlrb7mjvng
> _form.html.erb: http://pastie.org/private/narsz5oeuafahclqtvmwq
> 
> What do I want?
> 
> I just want the Sum to be DISPLAY the summation result automatically
> after entering the first and second numbers, without having a text box
> beside some.
> 
> I think it may be a HRML/CSS touch?
> 
> What should I do here?
> 
> Thanks.

If you want to populate the sum field with the result of first number + 
second number, consider JavaScript.
-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to