Search code examples
cssjquerycoldfusioncoldfusion-9

Jquery-ajax form submit changes css


I have a ColdFusion page with few div tags. I am doing an Ajax submission to populate result set of mxUnit results to another div.

$.ajax({
    type: "POST",
    url: "myURL.cfm",
    data: $dataToPass,
    success: function(data) {
        $('#testResults').html(data);
    }
});
return false;

When the result is displayed in my #testResults div, it messes up all of my css from the left column. Any suggestions on avoiding this.


Solution

  • It was an issue with the returned html page. I checked for the returned html page and rendered it in jsFiddle. It had some of its own CSS which was conflicting with mine.

    Thanks for all the comments.