javascript - How to Display JSON element with js tooltip (angular and BS being used)? -


is possible show json element in tooltip in js?

(json element here).tooltip('show');

if yes, how.

i able html not dynamic value json object.

code :

$scope.data = [{'id':'1','columns ':'name','observations':'thompson'},              {'id':'2','columns ':'telephone','observations':'0145698745'}];  $('#mytable').on('mouseenter','td:nth-child(1)', function(){     var jsonobj = $scope.data;     var type;     $.each(jsonobj,function(i,v){         if (v.columns == $(this).text()) {             type = v.observations;             console.log(v.observations);                     return false;         }     })       console.log($(this).text());     $(this).parent().find('tbody.name').tooltip('show'); //works     (type).tooltip('show'); //does not work                              }); 


Comments