Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showonlyone(thechosenone) {
- $('#content-block .item').each(function () {
- $(this).removeClass('_active');
- });
- $('.tabs').each(function (index) {
- if ($(this).attr("id") === thechosenone) {
- $(this).show();
- $('#content-block').removeClass().addClass('profile ' + thechosenone);
- $('#' + thechosenone).addClass('_active');
- }
- else {
- $(this).hide();
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement