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
Post a Comment