Microsoft JScript runtime error: 'jQuery' is undefined
Hi,
Please find below code. My this code is giving error "Microsoft JScript runtime error: 'jQuery' is undefined" when I am debugging in Visual Studio.
<script src="Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(function ($) {
// simple jQuery validation script
$('#login').submit(function () {
var valid = true;
var errormsg = 'This field is required!';
var errorcn = 'error';
$('.' + errorcn, this).remove();
$('.required', this).each(function () {
var parent = $(this).parent();
if ($(this).val() == '') {
var msg = $(this).attr('title');
msg = (msg != '') ? msg : errormsg;
$('<span class="' + errorcn + '">' + msg + '</span>')
.appendTo(parent)
.fadeIn('fast')
.click(function () { $(this).remove(); })
valid = false;
};
});
return valid;
});
});
</script>
Can anyone please help regarding this.
Thanks