开发者_高级运维
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this questioni need a jquery plugin to show full description of some data as a tooltip when mouse over that data's row in table. the description should load with ajax.
I recommend jQuery TOOLS Tooltip. I use it on my projects.
But as for AJAX, you will probably need to code it yourself with event listeners.
As a matter of fact, I just recently released my fork of jQuery UI Tooltip.
It supports remote content by feeding a function to the content option that takes care of the ajax request.
Something like this:
$("table tr").tooltip({
content: function(response) {
// Init the ajax call (you can use .post or .ajax as well)
// response is the callback that will handle the response
$.get("url_to_tooltip_content", response);
// Return text that will show until a response have been recieved
return "Loading...";
}
});
精彩评论