cant set class and if to passwword input in django forms code example

Example 1: jquery enable submit button

//jQuery 1.6+ use:
$("#submitButtonID").prop('disabled', true); //disable 
$("#submitButtonID").prop('disabled', false); //enable

//jQuery 1.5 and below use:
$("#submitButtonID").attr('disabled','disabled'); //disable 
$("#submitButtonID").removeAttr('disabled'); //enable

Example 2: multiple form in one class djanog

class MultipleFormsDemoView(MultiFormsView):
    template_name = "pages/cbv_multiple_forms.html"
    form_classes = {'contact': ContactForm,
                    'subscription': SubscriptionForm,
                    }

    success_urls = {
        'contact': reverse_lazy('contact-form-redirect'),
        'subscription': reverse_lazy('submission-form-redirect'),
    }

    def contact_form_valid(self, form):
        'contact form processing goes in here'

    def subscription_form_valid(self, form):
        'subscription form processing goes in here'