I tried this:

form.find('input').filter(function () { this.val(); }); 

but gives an error.

    1 answer 1

     $('#form').find('input').each(function(i, v) { console.log($(v).val()); }) 
     <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <form action="" id="form"> <input type="text" value="1" /> <input type="text" value="2" /> </form>