Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // set the correct checkbox on true (based on the which "Exposé" is asked for)
- var totalWhg = $('tbody > tr').length - $('.disabled').length - $('.reserved').length;
- var whgData = 0;
- $('.fancybox').on('click', function() {
- whgData = $(this).closest('tr').data('whg');
- for(var i = 1; i <= totalWhg; i++) {
- $('#powermail_field_ichmoechteeinexposezufolgenderwohnung_' + i).prop('checked', false);
- }
- $('#powermail_field_ichmoechteeinexposezufolgenderwohnung_' + (whgData - totalWhg + 1)).prop('checked', true);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement