give ur email field a class or Id n use the folling function.
$("#email").blur(function()
{
var searchbox = $(this).val().trim();
checkEmailExistance(searchbox);
});//end on blur
function checkEmailExistance(searchbox){
var dataString = 'searchword='+ searchbox.trim();
if(searchbox=='')
{
}
else
{
$.ajax({
type: "POST",
url: '<?php echo base_url()."index.php/register/email_validation"; ?>',
data: dataString,
cache: false,
beforeSend: function() {
},
success: function(dataString)
{
if(dataString=="0"){
$("#error").text("This is Unique Address");
$("#error").attr('isverified','1');
}else
{
$("#error").text("This email address is already present");
$("#error").attr('isverified','0');
}
}
});//end ajax
};