I have a qTip that is called on table elements.
$('#orders_table a[rel]').each(function (){
$(this).click(function(){
return false;
});
$(this).qtip({
content: {
text: 'Loading...',
url: $(this).attr('rel'),
title: {
text: 'Order Number ' + $(this).text(),
button: 'Close'
}
},
position: {
corner: {
target: 'bottomMiddle',
tooltip: 'topMiddle'
},
adjust: {
screen: true
}
},
show: {
when: 'click',
solo: true
},
hide: 'unfocus',
style: {
tip: true,
border: {
width: 0,
radius: 4
},
name: 'light',
width: 570
}
})
});
Then I have the following callback function:
$('#orders_table a[rel]').each(function (){
$(this).qtip({
api: {
onContentLoad:function() {
$('#select').change(function(){
alert('test');
});
}
}
})
});
qTip loads dynamic content. This dynamic content has a select box with the identifier "select".
For some reason, it apparently does not call the function AFTER qTip has loaded the dynamic content.
Any ideas? I tried onRender and onContentUpdate which don't seem to fit.
Thank!
source
share