Untitled
unknown
javascript
a year ago
183 B
6
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