I have a collapsed list. On Ajax success, list auto-expands.
I'm trying to get height of that expanded list ... and failing.
Ajax adds dynamically elements to list, so height changes.
Here is stripped code:
$('form').submit(function() {
$.ajax({
type: "POST",
url: "ajax/ajax.php",
data: {data:JSON.stringify(data)},
dataType: "json",
success: function(x) {
$('#slider' + x.id).children('ul,li').slideDown("slow");
//this does not return expected height (outerHeight() also tried)
var t = $('#slider_' + x.id).height();
}
});
return false;
});