Loading XML with bootstrap and jQuery
<p>I am trying to load a xml page in one of my html page using bootstrap and jquery.
in pure simple html I am able to load without any error.
e.g.</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;

&lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;link href="css/style.css" rel="stylesheet"&gt;
&lt;script src="https://code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
&lt;script&gt;
    $(document).ready(function(){
        $("#button1").click(function(){
            $('#text').load("./collection.html");
            alert( "Load was performed." );
        });
    });
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;button id="button1" type="submit"&gt;Click Me&lt;/button&gt;
    &lt;div&gt;
        &lt;pre id="text"&gt;&lt;/pre&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The problem is when I am trying to do same thing in other html page that's using Bootstrap - I am not able to see any contents however I can see the alert message.</p>

<p>Here is my html code with Bootstrap </p>

<pre><code>&lt;script&gt;
    $(document).ready(function(){
        $("#xmlResponseCollection").click(function(){
            $('#txtXmlResponseCollection').load("./collection.html");
            alert( "Load was performed." );
        });
    });
&lt;/script&gt;

&lt;tr&gt;
    &lt;td&gt;&lt;strong&gt;Response&lt;/strong&gt;&lt;/td&gt;
    &lt;td&gt;
        &lt;button type="button" class="btn btn-info btn-lg" data-toggle="modal" 
            data-target="#modalXml" id="xmlResponseCollection"&gt;Show xml response&lt;/button&gt;
        &lt;div id="modalXml" class="modal fade" role="dialog"&gt;
            &lt;div class="modal-dialog modal-lg"&gt;
                &lt;!-- Modal content--&gt;
                &lt;div class="modal-content"&gt;
                    &lt;div class="modal-header"&gt;
                        &lt;button type="button" class="close" data-dismiss="modal"&gt;
                            &amp;times;
                        &lt;/button&gt;
                        &lt;h4 class="modal-title"&gt;XML Response&lt;/h4&gt;
                    &lt;/div&gt;
                    &lt;div class="modal-body"&gt;
                        &lt;pre id="txtXmlResponseCollection"&gt;&lt;/pre&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>Any idea how to fix this one?</p>