Rather than have 3 different fields for the Social Security Number, I'd using a single field that is masked for the ###-##-#### format.
You could then have the single validation rule hit the single input box.
jQuery Masked Input Plugin
$("#ssn").mask("999-99-9999");
Here is a code sample using a single field for SSN along with the validate plugin and the masked input plugin...
<form id="myForm">
<fieldset>
<legend>My Sample Form</legend>
<label><strong>Name:</strong></label><br />
<input name="name" id="name" />
<br />
<label><strong>SSN:</strong></label><br />
<input name="ssn" id="ssn" />
<br />
<input class="submit" type="submit" value="submit" />
</fieldset>
</form>
<script language="javascript">
jQuery(function($) {
$("#ssn").mask("999-99-9999");
// validate signup form on keyup and submit
$("#myForm").validate({
rules: {
name: "required",
ssn: "required",
},
messages: {
name: "Please enter your name!",
ssn: "Please enter your ssn!"
}
});
});
</script>