title: jQuery - Syntax Error in a Conditional
body: <pre><code>$(".editAd").change({
      if ($(this).val() == 1)
          {
              $("#submitBtn").val("Next Step");
          }
          else
          {
              $("#submitBtn").val("Submit Changes");
          }
      });
  </code></pre>
  
  <p>There is a syntax error on the second line of this code. Missing : after property ID. I swore this was the proper use of val() in a conditional, but I suppose I could be wrong...</p>
  
  <p>I know this is a pretty simple fix, but I can't find any resources off of a few minutes of research, and I was hoping the users of SO could help me out. :)</p>
  
  <p>Thank you!</p>
  
  <p>EDIT: There's always a silly error that developers make that stumps them for a period of time... Always review the ENTIRETY of your code for errors because the developer tools may not actually pick up the proper line of the error, as in this case.</p>