开发者

displaytag element repositioning with jQuery

Quick question. I am using the the jquery.easytabs plugin along with the displaytag library to display a bunch of tables in separate tabs.

What I would like to do is move the export links div to the top of each table. I thought it would be easy to do with jquery and tried this.

$('.exportlinks').prev().before($('.exportlinks'));

But this is showing the export links for each tab in every tab.

Each tab content div has a unique id, but the exportlinks div'开发者_运维问答s have identical classes.

I hope this is making sense, I'm sure there's a clever way to do this... Please help!

Thanks, Vance


will be better to see the dom, but you can try this :

$('.exportlinks:last').prev().before($('.exportlinks:first'));

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜