jQuery显示、隐藏
<%=javascript_include_tag 'jquery'%><tdid="note" class="services" >
<input title="显示全部信息" type="button" value="显示全部信息">
</td>
<tdid="note" class="all_infos" style="display: none;">
<input title="收起" type="button" value="收起">
</td>
def jq_show(*arg)
html=""
arg.each{|a| html+="jQuery('#{a}').show('slow');"}
html
end
def jq_hide(*arg)
html=""
arg.each{|a| html+="jQuery('#{a}').hide('slow');"}
html
end
页:
[1]