title: Validation in bootstrap modal dialog
body: <p>I am using Bootstrap 2. </p>
  
  <p>Inside a form I have a button which opens a bootstrap modal dialog. Within the bootstrap modal dialog I have a select2 control, which I want to validate. i.e. I want at least one value in the select2 control. How do I validate the select2 control as a required field before the dialog is closed? </p>
  
  <p>Note: closing the dialog doesn't submit the form. </p>
  
  <p>Does Select2 have a mandatory/required property? Can the Save button of the dialog be linked to checking the select2 control? </p>
  
  <p>I am using MVC4, bootstrap 2, razor. </p>