As discussed in the comments, the local version of the site is using your modified
jquery.validation.unobtrusive.js
file, but the published version of your site is using the minified
jquery.validation.unobtrusive.min.js
file, which hasn't been modified.
The simplest way to update the minified file is to use Mads Kristensen's "Bundler & Minifier" extension:
Bundler & Minifier - Visual Studio Marketplace[
^]
Once you have the extension installed, right-click on the
jquery.validation.unobtrusive.js
file in the solution explorer, and select Bundler & Minifier ⇒ Minify File.
Once you've done that, any future changes to the
jquery.validation.unobtrusive.js
file should automatically update the
jquery.validation.unobtrusive.min.js
file as well.