I have an element that I want update through ajax. The element is using jQuery ui buttonset function.
Now when I load the element with buttonset, the buttonset jQuery ui css no longer shows on the element.
I have tried using ON() but that didn't work either.
How can you have jQuery ui css with elements loading on the fly?
UPDATE:
Ok so I have an element with buttonset
$('#element').buttonset()
And an ajax call
$('.new_filter_button').click(function(){ // when a feature button is selected
var serialize = $('#header_dropdown_make').serialize(); // takes all the values of the filter
$.ajax({
type : 'POST',
url : 'http://localhost/ajax/new-filters.php',
data : serialize,
success : function(data) {
$("#new_results_toolbar").html(data);
}
});
});
The new new-filters.php will return the id element. It is replacing the old element with the new one on the fly in the DOM.