title: Remove style sheet in thickbox using jquery
body: <p>I have a partial view (<code>Partial.ascx</code>), two master pages(<code>Master1.Master</code> and <code>Master2.Master</code>) and two Views(<code>Page1.aspx</code> and <code>Page2.aspx</code>) in my asp.net mvc (C#) application. I have referred different style sheet for each master page. </p>
  
  <p>When i show the partial view (<code>Partial.ascx</code>) as thickbox in View(<code>Page1.aspx</code>) whose Master page is <code>Master1.Master</code>, i need to overwrite the styles of elements inside the thickbox with style sheet referring to <code>Master2.Master</code>, without affecting the styles of the <code>Page1.aspx</code> elements.</p>
  
  <p>I have tried like:</p>
  
  <pre><code>$("link[href*='style1.css']").remove();
  </code></pre>
  
  <p>But the problem with this query is it reflects in <code>Page1.aspx</code> View, which when i close the thickbox or in the shadow view of the page, the styles of that page are vanished.</p>
  
  <p>How can overwrite the style sheet of elements inside a thickbox using jquery without affecting the main View elements?</p>