Mark empty fields with jQuery
<p>I have a form with the fields structured in the following format:</p>

<pre><code>&lt;span class="req"&gt;*&lt;/span&gt;
&lt;label for="name"&gt;Name&lt;/label&gt;&lt;br&gt;
&lt;input type="text" id="name"&gt;
</code></pre>

<p>On submit, I would like to mark the empty fields that have an asterisk before them. I assume I can use <code>.each()</code> to loop through my form fields, but how do I target only required fields? </p>
