I want to perform some action if all the input fields have some some value. So I am checking wether the input field have value using length condition but its not working correctly
if($(".form-control:empty").length == 0){
console.log('All are filled')
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<input type="text" id="instance-dir" placeholder="Instance Directory" class="form-control"/>
<input type="text" id="Wroking-dir" placeholder="Working directory" class="form-control"/>