开发者

what jQuery library does this?

I want to be a开发者_StackOverflowble to have the following UI. When you click on the close button on top, the row below it moves to the top and so on.

what jQuery library does this?

Is there a library for this?


You don't need a library for this. Just bind the click event of the close button to hide the row that it is contained in.


No library, just around four lines of jQuery:

$('.item').append('<div class="close">x</div>');

$('.close').live('click', function() {
    $(this).parent().slideUp();
});

And a demo: http://jsfiddle.net/Blender/pEVTv/8/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜