I have a form where I need to check for all of the required inputs if are not empty so I can enable the submit button.
<form id="inquiry-component-form" method="post">
<input id="inquiry-media-outlet" type="text" name="media_outlet" required>
<input id="inquiry-name" class="form-control" type="text" name="name" required>
<button id="submit-inquiry-form" disabled type="submit">Submit</button>
</form>
I tried to do this with jQuery the problem is that it is not possible because of Liquid/Jekyll code runs at build time. So I need to know a way to do this with HTML.
Any ideas on how can I achieve what I need?