Displaying 1 result from an estimated 1 matches for "_hide_other".
Did you mean:
hide_other
2006 Feb 27
0
Example code for select_from_db (a.k.a. combo box)
...if (Element.visible(''#{tag}_other_div'') == false)
Effect.SlideDown(''#{tag}_other_div'');"
page << "$(''#{tag}_other'').focus();"
page << "$(''submit'').disabled = true;"
==== app/views/assets/_hide_other.rjs ====
tag = "#{params[:object]}_#{params[:method]}_#{params[:uniqid]}"
if (params[:field] == "other")
page.insert_html :bottom, "#{tag}", content_tag("option", "#{params
[:value]}")
page << "$(''#{tag}'').selec...