Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function() {
- var models = [];
- $('.mc-block .mc-change-button').on('click', function () {
- $(this).toggleClass('checked');
- if (!$(this).hasClass('checked')) {
- $(this).html('Выбрать модель');
- } else {
- $(this).html('Модель выбрана');
- models.push($(this).parent().find('.model-name').html());
- alert(models);
- }
- });
- });
Add Comment
Please, Sign In to add comment