I want to make a tooltip on textbox,For this i make angularjs attribute directive but my div is not showing.
HTML code:-
address1
angularjs code:-
app.directive('tooltip5', function ($compile) {
return function (scope, elm, attrs) {
elm.bind("mouseover", function () {
var el = angular.element('');
el.append('
hjjjjjjjjjjjjj
'); $compile(el)(scope);
elm.append(el);
});
}
});
when i see Inspect div is added into TextBox but it will not display.
Please some one help me


Midhun TpRank #388 · 6.5K reputationPosted Oct 15, 2016, 5:21 AM EDT
I'm not sure about if this is the issue. But you are trying to add div inside span tag. I think that is not gonna work. You should try adding a span itself instead of div tag.
Akhilesh PanditRank #1,827 · 811 reputationPosted Oct 15, 2016, 5:28 AM EDT
MayankRank #4,018 · 371 reputationPosted Nov 24, 2016, 11:20 PM EST
Tooltip:
tooltip
Controller:
$scope.hoverEdit = true;
$scope.hoverIn = function () {
//alert("hoverin");
$scope.hoverEdit = true;
};
$scope.hoverOut = function () {
//alert("hoverout");
$scope.hoverEdit = false;
};