문제

I create collapsible tab and I want some changes is there if once click on 1st tab this will be goes last in the collapsible list and same for the other tab also. (If having 4 tab and click on 1st tab in the list 1st is goes last 2 3 4 1)

Thanks in advances...

도움이 되었습니까?

해결책

I think you are looking for this.

HTML code

<div class="wrapper">
<div>div 1</div>
<div>div 2</div>
<div>div 3</div>
<div>div 4</div>
</div>

jQuery Code

$('.wrapper').find('div').on('click', function(){
    $(this).appendTo( $(this).parent() )
})

Working Code: http://jsfiddle.net/P7tap/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top