title: javascript variable to jQuery object
body: <p>How can I take this javascript variable and</p>
  
  <ol>
  <li><p>convert it into jQuery object  $(myFragment)</p></li>
  <li><p>change the id attribute from "fragment" to "fragment1" ?</p></li>
  </ol>
  
  <blockquote>
  <pre><code>myFragment = "\
  &lt;div id='fragment'&gt;\
  &lt;input type='hidden' id='preBeginDtlFields' name='BeginDtlFields'\
   value=''  /&gt;\
  &lt;input type='hidden' id='preGroup' name='GRP' value='' /&gt;\
  &lt;/div&gt;";
  </code></pre>
  </blockquote>