title: Create a variable in jquery with html content
body: <p>Hi I am trying to create a variable in jquery that contains a table for outputting in different areas of a website. But it is giving me an error, and I do not understand why. Here is my JQUERY:</p>
  
  <pre><code>var copy = "&lt;table width='750' border='0' cellspacing='0' cellpadding='0'&gt;
    &lt;tr&gt;
      &lt;td&gt;Tarifa valida desde:&lt;/td&gt;
      &lt;td&gt;Tarifa valida hasta:&lt;/td&gt;
      &lt;td&gt;Tarifa MXN&lt;/td&gt;
      &lt;td&gt;Tarifa USD&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;input type='text' name='from1' id='from1' class='date' /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type='text' name='to1' id='to1' class='date' /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type='text' name='mxn1' /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type='text' name='usd1' /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Extra Pax MXN:&lt;/td&gt;
      &lt;td&gt;Extra Pax USD:&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;input type='text' name='exmxn1' /&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type='text' name='exusd1' /&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;";
      });
  </code></pre>
  
  <p>How could I place this in a variable so that I can output in various divs as so:</p>
  
  <pre><code>$(".divExample").html(copy);
  </code></pre>
  
  <p>Thank you in advance for anyones help!</p>