I want a button to be disabled initially. Once a condition is met, I want to enable the button. I tried the below and the button is not getting enabled.
<button class="search btn right-align search-button disabled" id="view-btn">
Hello
</button>
$('#submit_query').click(function(){
document.getElementById("myBtn").disabled = false;
}