【问题标题】:From jQuery to Prototype/Scriptaculous - hiding and showing divs?从 jQuery 到 Prototype/Scriptaculous - 隐藏和显示 div?
【发布时间】:2012-02-09 16:10:09
【问题描述】:

我用这个例子在我的网站上隐藏和显示了一些 div:

http://papermashup.com/simple-jquery-showhide-div/

我将如何使用 Prototype/Scriptaculous 编写它?正如我所见,它们也有显示和隐藏方法?

感谢您的帮助:)

【问题讨论】:

    标签: jquery html prototypejs scriptaculous


    【解决方案1】:
    $('button_id').observe('click', function() {
        Effect.toggle('div_id', 'blind');
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-09-15
      • 2013-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-06
      相关资源
      最近更新 更多