SHOW:
|
|
- or go back to the newest paste.
1 | $(function() { | |
2 | $('.productTag').click(function() { | |
3 | $.ajax({ | |
4 | url: 'assortiment/filter?title=' + $(this).text() | |
5 | }).complete(function(data) { | |
6 | console.log(data); | |
7 | $('div#productList').html(data); | |
8 | }).fail(function(jqXHR, textStatus) { | |
9 | alert( "Request failed: " + textStatus ); | |
10 | }); | |
11 | }); | |
12 | }); |