My code is like Below.
$.ajax({
url:'http:://www.sample.com/checkmail/'+$('#txtemail').val(),
success: function(data)
{
$('#response').html(data);
if(data!="Success")
{
$('#txtemail').css("background-color","#FF8A8D");
}
else
{
$('#txtemail').css("background-color","white");
}
}
});
Above code works when passing data without '@' sign
Example:
//passing Hello
txtemail = "Hello"
//ajax response message in firefox
GET http://www.example.com/checkmail/Hello 200 OK 503ms
But if i pass email like below it gives error
Example:
//passing hello
txtemail = "hello@eee.com"
//ajax response message in firefox
GET http://www.example.com/checkmail/hello@eee.com 400 Bad Request 26ms
Any Suggestions How to overcome this matter