Skip to content
Advertisement

javascript to enable and disable a button based on changes in form

i am using a javscript to enable a button based on the changes in the form field in django python using bootstrap.below is the script

JavaScript

also the below code in html to initially disable button

JavaScript

but the button stays disabled even after changing values in the field.any help would be appreciated

Advertisement

Answer

you need to add the below script

JavaScript

}); and below in the html

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement