Is the observe_field (ActionView::Helpers::PrototypeHelper )
can be apply to any html tag? (such as div)
I tried to apply ‘observe_field’ to observe the content of
tag, but, as the observed
's content was changed,
there was nothing happend.
for example (in test.rhtml):
<%= link_to_remote "test", :update=>"content1", :url=> { :action=>
"echo"} %>
** “echo1” and “echo2” do only rendering the text.
what i expect is that after i click ‘test’, ‘content1’ wil be changed,
and after that , ‘content2’ will be changed too, but what happends in
real
is only a change on ‘content1’.