Loop required form inputs

Loop required form inputs

I'm trying to loop through all inputs in a form that have type of text.  Below is typ. html:

  1. <form class="cd-form floating-labels">
  2.   <fieldset>
  3. <div class="icon">
  4.  <label class="cd-label" for="cd-name">Name</label>
  5.  <input class="user" type="text" name="cd-name" id="cd-name" required>
  6. </div>
  7.   </fieldset>
  8. </form>

I keep getting error on each - is not a function & is not defined:

  1. $('form.cd-form input[type=text]').prop('required').each(function() {
  2.       if ($(this).val() == '') {
  3.         ... handle no input
  4.       }  
  5.   });

What am I doing wrong?
Thanks,  Bill