Ajax 처음
tooltip적용
tooltip에 image넣기
1.
<a id="riverroad" href="#" title="<img src='http://icdn.pro/images/fr/a/v/avatar-barbe-brun-homme-utilisateur-icone-9665-128.png'" >image of 1 Maple St.</a>
2.
HTML :
<a id='riverroad' href='#' title='' >image of 1 Maple St.</a>
JS :
<script>
$(function() {
$( document ).tooltip({
items: "a",
content: function() {
if (element.attr('id') === 'riverroad') {
return "<img class='map' src='./images/myimage.jpg' />";
}
}
});
});
</script>