source:
Cart.js@
e3d4e0a
Last change on this file since e3d4e0a was e3d4e0a, checked in by , 6 days ago | |
---|---|
|
|
File size: 508 bytes |
Rev | Line | |
---|---|---|
[e3d4e0a] | 1 | $(document).ready(function(){ |
2 | ||
3 | $('.radio-group .radio').click(function(){ | |
4 | $('.radio').addClass('gray'); | |
5 | $(this).removeClass('gray'); | |
6 | }); | |
7 | ||
8 | $('.plus-minus .plus').click(function(){ | |
9 | var count = $(this).parent().prev().text(); | |
10 | $(this).parent().prev().html(Number(count) + 1); | |
11 | }); | |
12 | ||
13 | $('.plus-minus .minus').click(function(){ | |
14 | var count = $(this).parent().prev().text(); | |
15 | $(this).parent().prev().html(Number(count) - 1); | |
16 | }); | |
17 | ||
18 | }); |
Note:
See TracBrowser
for help on using the repository browser.