title: i want do modify htmlelement from string in jquery
body: <p>I have an String with htmlcode, I want do insert data in this element and add attributes like src for img. But only I can modify from html-document but i want only to modify in this element I write an example here. This doesn't work but it shows what i mean. 
  I tried</p>
  
  <pre><code>var element = $('&lt;form method="post" action=""&gt;
      &lt;button value="all" type="submit"&gt;Get All Wines!&lt;/button&gt;
      &lt;button value="red" type="submit"&gt;Get Red Wines!&lt;/button&gt;
      &lt;button value="white" type="submit"&gt;Get White Wines!&lt;/button&gt;
   &lt;/form&gt;
   &lt;div class="test"&gt;
   &lt;/div&gt;');
              element.find('div.test').html('test');
  </code></pre>
  
  <p>if i make this:</p>
  
  <pre><code>$('div.test').append('hey');
  </code></pre>
  
  <p>I don't want to modify in my html file but i want only modify this generate element from string</p>