new workshop form
[prawokultury.git] / prawokultury / static / js / workshop_form.js
1 $(document).ready(function() {
2
3     var project_row = $('#id_w_nobre_question').closest('tr');
4
5     var switcher = $('#id_w_nobre');
6
7     if (!switcher.is(':checked'))
8         project_row.hide();
9
10     switcher.on('change', function(data) {
11         console.log(data);
12         project_row.toggle();
13     })
14
15 });