I don't know about the right method, but the simplest method using java script would be
input onchange = 'myFunction(this)'
function myFunction(e){
myelement = document . getElementById('newsletter-submit-btn');
if (e . value == null || e . value == "") {
myelement . classList . add('disabled');
I'm guessing you want to prevent the sending of the form if not all required fields are filled in. The easiest way to do that is adding the required property to the element.
<imput type="text" name="field" required>
Then you don't need to disable the button
If you still want to I suggest to do it the other way around.
Start with having the button disabled the add an event listener to all form fields where you check if the values are set and when they meet your requirements enable the button.