viens
09-23-2009, 04:09 PM
Hello,
Can somebody help me? I don't understand why my script stops working in Internet Explorer if I include the following lines:
=================================
var email = $("input#email").val();
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter(email)) {
$("label#email_error").show();
$("input#email").focus();
return false;
================================
It works fine with all other browsers.
Thanks.
Can somebody help me? I don't understand why my script stops working in Internet Explorer if I include the following lines:
=================================
var email = $("input#email").val();
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter(email)) {
$("label#email_error").show();
$("input#email").focus();
return false;
================================
It works fine with all other browsers.
Thanks.