「jQuery入門」$(document).tooltip()でhtmlのコンテンツをajaxで取得する

2018年6月24日

サンプル:
$(function(){
$(document).tooltip({
items : “[class]",
content : “xxxxxx",
open : function(){
testFun($(this));
}
});
});

function testFun($target){
var result = “";
$.post(
“getInfo.php",
{
//some code
},
function(gg, dt){
$target.tooltip(“option", “content", gg);
},
“html"
);
return result;
}

jQuery

Posted by arkgame