filter with attr-key.Review by:@xuqi
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -152,7 +152,7 @@ $('#brand-search-input').keyup(function() { | @@ -152,7 +152,7 @@ $('#brand-search-input').keyup(function() { | ||
152 | if (val === '') { | 152 | if (val === '') { |
153 | $brandAttrs.removeClass('hide'); | 153 | $brandAttrs.removeClass('hide'); |
154 | } else { | 154 | } else { |
155 | - $brandAttrs.addClass('hide').filter('[data-key*=' + val + ']').removeClass('hide'); | 155 | + $brandAttrs.addClass('hide').filter('[data-key*="' + val + '"]').removeClass('hide'); |
156 | } | 156 | } |
157 | }); | 157 | }); |
158 | 158 |
-
Please register or login to post a comment