l am making an jax call and the data is coming back fine inserted into the specific div correctly.
However my css is broken after the AJAX call. the h1 are too big some menu items disppear.
See code below
jQuery('#section').change(function()
{
jQuery('#loading')
.bind('ajaxStart', function() {
jQuery(this).show();
})
.bind('ajaxComplete', function() {
jQuery(this).hide();
// jQuery('#section').remove();
});
var url = 'index2.php?option=com_custom&task=getOptions';
var section = jQuery(this).val();
url = url+'§ion='+section;
jQuery.ajax({
timeout: 60000, // Timeout of 60 seconds
type:'GET',
url:url,
dataType:'html',
success:function(html,textStatus)
{
jQuery('#price').html(html);
},
error:function(xhr,textStatus,errorThrown)
{
alert('An error occured! ' + (errorThrown ? errorThrown :xhr.status));
}
});
});