OK, so this is a two part problem
FIDDLE: http://jsfiddle.net/aujqU/575/
Problem 1: I have this form here that will not remove input text when I select the field. I figured it might be the "placeholder" tag. Then I was reading other questions on here that relate to "placeholder" and found it attributes the HTML5 function for that, but obviously that isn't working here. I am using jQuery validate for the form.
Problem 2: When a user does not enter required information jQuery will generate a "label:error" field which can be styled how I want. It does not populate the error field when the form is improperly filled out. It just gives whatever the browsers default is. Any thoughts..?
<div id="form-frame">
<h3>Schedule a Free Security Review</h3>
<p>Fill out the form and a Security Specialist will contact you at the phone number below about offers.</p>
<p>All fields required.</p>
<form id="contactForm" method="POST" action="">
<input type="text" id="first_name" name="first_name" minlength="5" maxlength="255" placeholder="First Name" value="" required />
<input type="text" id="last_name" name="last_name" minlength="2" maxlength="255" placeholder="Last Name" value="" required />
<input type="hidden" id="state" name="state" value="" />
<input type="text" id="email" name="email" minlength="25" maxlength="255" placeholder="Email" value="" required />
<input type="text" id="postal_code" name="postal_code" minlength="5" maxlength="10" placeholder="Zip Code" value="" required />
<input type="text" id="phone_primary" name="phone_primary" minlength="11" maxlength="12" placeholder="Phone" value="" required />
<input type="submit" value="Submit" />
</form>
<h6>* I agree to receive telemarketing calls at the telephone number provided above.</h6>
<p>Or Call Us At <span> 888-888-8888</span>
</p>
</div>
$('#contactForm').validate({
onfocusout: function (element) {
this.element(element);
},
rules: {
first_name: 'required',
last_name: 'required',
state: 'required',
email: 'required',
postal_code: 'required',
phone_primary: 'required'
},
messages: {
first_name: 'Please enter your first name',
last_name: 'Please enter your last name',
email: 'Please enter your email',
postal_code: 'Please enter your zip code',
phone_primary: 'Please enter your phone number'
}
});