;(function() {
$(function() {
$('dl').find('dt').on({
'click': function() {
$(this).next()
.slideDown(300)
.siblings('dd')
.slideUp(300);
},
'mouseleave': function() {
$(this).next()
.css('background', '#669')
.siblings('dd')
.css('background', '');
},
});
});
})();
polyevents .on() jquery
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.