Most probably you code has to fail around this line,
var emailaddressVal = $("#UserMaster.Email").val();
But that requires everything else is fine and console doesn't show any "undefined" errors.
Quote:
each function has an alert at line 1 to show if it is hit, the debugger is not picking it up either.
Oh boy, you are doing it the wrong way. Use Chrome Developer Tools and set breakpoints in your local environment, instead of polluting the code with alerts that
might move to production. If the debugger is not hitting that means that something is not letting the code to reach at this point, maybe incorrect naming of the connections between the elements and scripts, or perhaps something worse.
And the solution as Richard has suggested already, you need to move the jQuery inclusion in your HTML DOM to the top—jQuery always goes as the first script in the DOM. This one,
<script src="/lib/jquery/jquery.js"></script>
<script src="/lib/bootstrap/js/bootstrap.js"></script>
Also, check that you are loading everything that needs to be loaded before you execute any dependent code, one of such codes is the
$(document).ready(function () { });
code, check that too.
If the code still doesn't work, the error would be printed in the console, please share that to be precise about the solution.