title: MVC Custom Client side validation
body: <p>In my mvc 3 application, I would like to execute a function when the user tries to submit the form.  Within that function I will check a number of fields to determine if the user has provided the necessary data before submission.</p>
  
  <p>How can I hookup a script to be executed when the user tries to submit the form?</p>
  
  <p>(within the custom validate function, I need to check if various checkboxes have been selected and if yes, then additional values are selected from dropdownlists etc.)</p>