<script> (function ($) { var alls = $('.btmnuel'), a; alls.click(function () { a && a.removeClass('active'); a = $(this); a.addClass('active'); }); })(jQuery); </script>