title: How would I call my function before the form actually submits?
body: <p>I've been trying to get this code to work for the past few days. I need to call a function before the form is submitted to check if the class for each of the variables is the same thing. Here is my <a href="https://codepen.io/yameen101/pen/eYdeEpp" rel="nofollow noreferrer">code</a>. Please let me know and I thank you in advance.</p>
  <p><code>code</code></p>