小编Har*_*cha的帖子

Add element after specific list item

I have a list of tabs set up like this. All tabs have a class tab_<number> and the active tab also has an extra class tab_active

Below these tabs there is a div that shows the dynamic content based on which tab is active

<div class="tab_content">xxx</div>

What I'm trying to do is insert the div tab_content below the active tab.

This works, but only on the second click on the tab, which I don't understand why.

The second script I …

html javascript css jquery

3
推荐指数
1
解决办法
70
查看次数

标签 统计

css ×1

html ×1

javascript ×1

jquery ×1