How to make select2 work with jQuery Validation

jQuery Validation and Select2 JS Plugin for Hidden Fields. Allow them to be validated for your project.

I was having trouble getting Select2 JS plugin validated with jquery validation and I found this fix for the issue. 

Just make sure you add an ignore for hidden fields because Select2 JS adds the input as a hidden field. 

$("#ContactForm").validate({
  ignore: [],       
  rules: {
    //Rules
  },
  messages: {
    //messages
  }
});