I have a form and some of the fields are required, how do I target only those?
Here is my code:
<p><strong>Your Information</strong></p>
<p><label for="name">Name <span style="color:#990000;">*</span></label><br />
<input required type="text" name="name" id="name" class="input" style="width: 250px; margin-left: 0px;"/></p>
<p><label for="brokerOffice">Broker Office <span style="color:#990000;">*</span></label><br />
<input required type="text" name="brokerOffice" id="brokerOffice" class="input" style="width: 250px; margin-left: 0px;"/></p>
<p><label for="email">Email Address <span style="color:#990000;">*</span></label><br />
<input required type="text" name="email" id="email" class="input" style="width: 250px; margin-left: 0px;"/></p>
<p><label for="phone">Phone <span style="color:#990000;">*</span></label><br />
<input required type="text" name="phone" id="phone" class="input" style="width: 250px; margin-left: 0px;"/></p>
Can you target them using the attr selector?