jquery - call function after slidetoggle complete -


$(document).ready(function () {     $("#newrecord tr:odd").addclass("odd");     $("#newrecord tr:not(.odd)").find("li").hide();     $("#newrecord tr:not(.odd)").hide();     $("#newrecord tr:first-child").show();      $("#newrecord tr.odd").click(function () {         $("#newrecord tr:not(.odd)").show();         $(this).next("tr").find("li").slidetoggle("slow","swing");     }); }); 

the following first hides rows , when click on odd row displays row , slides down li content of each row. need when click again li tag slides want it, should hide row. should call hide function on row after slide up.

$(document).ready(function () {     $("#newrecord tr:odd").addclass("odd");     $("#newrecord tr:not(.odd)").find("li").hide();     $("#newrecord tr:not(.odd)").hide();     $("#newrecord tr:first-child").show();      $("#newrecord tr.odd").click(function () {         $("#newrecord tr:not(.odd)").show();         $(this).next("tr").find("li").slidetoggle("slow","swing", function(){             //what on toggle compelte...         });     }); }); 

Comments

Popular posts from this blog

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -