Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $('.productTag').click(function() {
- var $tag = $(this);
- $('.productTag').each(function() {
- $(this).removeClass('active');
- });
- $.ajax({
- url: 'assortiment/filter?title=' + $(this).text()
- }).done(function(data) {
- $('#productList').html(data);
- $tag.addClass('active');
- }).fail(function(jqXHR, textStatus) {
- alert( "Request failed: " + textStatus );
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement