When a user click the link, the_input’s value will be updated, which
fires
the observer, then the_result div will be showed, and it’s bad,
because I intend to hide the div, if the_input’s value
is changed not by typing in the input filed, but by clicking the link,
and that’s why I added “$(‘the_result’).hide( );” to link_to_function.
but now this .hide() is useless…
I know Element.hide(‘the_result’) or $(‘the_result’).hide( ) will hide a
div,
but my problem is:
the link, which intend to hide the div, trigger an observer, and this
observer make the div show again. I don’t know how to turn off the
observer when the link is clicked.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.