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

MayankPosted Nov 25, 2016, 4:20 AM
Tooltip:
tooltip
Controller:
$scope.hoverEdit = true;
$scope.hoverIn = function () {
//alert("hoverin");
$scope.hoverEdit = true;
};
$scope.hoverOut = function () {
//alert("hoverout");
$scope.hoverEdit = false;
};
Akhilesh PanditPosted Oct 15, 2016, 9:28 AM
Midhun TpPosted Oct 15, 2016, 9:21 AM
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.