$('selector').tipsy({
live: true
});
http://onehackoranother.com/projects/jquery/tipsy/
Поддержка живых событий
Живые события поддерживаются с помощью параметра {live: true}.Требуется jQuery ≥ 1.4.1, а всплывающие подсказки не поддерживают ручной запуск.
Редактировать
Другой способ - привязать подсказки к новым элементам после того, как онибыл создан.Пример:
$('selector').tipsy();
// post, get, ajax, etc
$.post(..., function(data) {
// in the return function, first create the new elements
...
// call on the tipsy method again
// the selector will now also match the newly created elements
$('selector').tipsy();
});
Если в вашем методе tipsy
много переменных, и вы не хотите его повторять, может быть проще создать отдельную функцию.Пример:
// create the function
function setupTipsy() {
$('selector').tipsy({
html: true,
gravity: 'w',
etc..
});
}
// call on the function when the document has been loaded
setupTipsy();
// post, get, ajax, etc
$.post(..., function(data) {
// in the return function, first create the new elements
...
// call on the same function again
setupTipsy();
});