Untitled
unknown
javascript
2 years ago
183 B
7
Indexable
$('tab').click(function() {
const index = $(this).index();
$('tab, content').removeClass('active');
$(`tab:eq(${index}), content:eq${index}`).addClass('active');
});Editor is loading...
Leave a Comment