Hello, I'm using jQuery UI Tabs, and am using the sample code:
$(function() {
$("#tabs").tabs({
ajaxOptions: {
error: function(xhr, status, index, anchor) {
$(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo.");
}
}
});
});
The issue here is I want to capture an AJAX success to grab a JSON object in inject the data into the DIV...
But this isn't working
$(function() {
$("#tabs").tabs({
ajaxOptions: {
success: function(xhr, status, index, anchor) {
alert('hello world');
},
error: function(xhr, status, index, anchor) {
$(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo.");
}
}
});
});
Ideas?
Thanks