$(".editAd").change({
if ($(this).val() == 1)
{
$("#submitBtn").val("Next Step");
}
else
{
$("#submitBtn").val("Submit Changes");
}
});
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...
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. :)
Thank you!
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.
$(this).val()to a variable before the if and compare that. see what happens.