I have the following code inside my asp.net mvc web application:-
<script>
function validateForm(e) {
if ($("[name=ip]").val() == "" && $("[name=mac]").val() == "") jAlert('Please enter atleast one search value.', 'Message');
e.preventDefault();
}
</script>
but when accessing this Script on IE i will get the following error:-
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'preventDefault'
while when accessing the web page that uses this script using Firefox, chrome it will work fine, can anyone advice please ?