if you want more related search please click here
please help to other
http://scriptquery.blogspot.in/
Validating an email.
-----------------------
Jquery:
$(‘#txtEmail’).blur(function(e) {
var sEmail = $(‘#txtEmail’).val();
if ($.trim(sEmail).length == 0) {
alert(‘Please enter valid email address’);
e.preventDefault();
}
var filter = /^([w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([w-]+.)+))([a-zA-Z]
{2,4}|[0-9]{1,3})(]?)$/;
if (filter.test(sEmail)) {
alert(‘Valid Email’);
}
else {
alert(‘Invalid Email’);
e.preventDefault();
}
});
In Source Code:
<asp:TextBox id=”txtEmail” runat=”server” />
if you want more related search please click here
please help to other
http://scriptquery.blogspot.in/
5:01 AM
Share:
0 comments: