Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log(django.jQuery('#id_is_multiple_choice'))
- django.jQuery('#id_is_multiple_choice').change(function(){
- if(django.jQuery("#id_is_multiple_choice").is(':checked'))
- {
- console.log('showing element');
- django.jQuery(".js-inline-admin-formset inline-group").show();
- }else
- {
- django.jQuery(".js-inline-admin-formset inline-group").hide();
- console.log('hiding element');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement