I'm not sure weather is my code is a optimize solution or not but working exactly that i needed
$(document).ready(function () {
$('body').on('mouseover','table td',function(e) {
indicator.tooltipMessage();
})
});
var indicator = {
messages : {
valid : "It is a Valid Change",
invalid : "It is an Invalid Change",
invalidEmpty : "You can not have an empty Name"
},
tooltipMessage : function(){
var self = this;
$('table td').on('mouseover',function(e) {
e.preventDefault();
var div = $(this).find(".valid_message_box"),
msgbox = $(".valid_message_box span.msgbox"),
arrowTop = $(".valid_message_box span.arrow_top");
if(div){
if($(this).hasClass("is_valid ")){
div.show();
arrowTop.show();
$(msgbox).html(self.messages.valid).show();
return;
}
else if($(this).hasClass("is_invalid")){
var dataCell = $(this).text();
div.show();
arrowTop.show();
dataCell == "" ? $(msgbox).html(self.messages.invalidEmpty).show() : $(msgbox).html(self.messages.invalid).show();
return;
}
}
});
$('table td').on('mouseout',function(e) {
$(this).find(".valid_message_box").hide();
});
}
}