jQuery - How to translate a Scriptaculous toggle in a jQuery slidetoggle? -


i have simple question (i guess!)

i used work scriptaculous add dom effects pages
use jquery, seems conflict between scriptaculous , jquery

how can translate :

<a href="#" onclick="effect.toggle('header', 'blind', { duration: 1.0 }); return false;">link</a> 

to jquery similar effect? (slidetoggle() maybe?)

<a href="#" onclick="???; return false;">link</a> 

thank you!

onclick = "javascript:$('#header').toggle(100);" 

assuming have element id header. parameter 100 milliseconds toggle transition. can call slidetoggle().


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -