using jquery .html(), i cant pass an id through to a function
<p>sorry if confusing.. but i am this code:</p>

<pre><code>$(document).ready(function(){
  $("button.yo1").click(function(){
    $("div.class1").html("&lt;h1&gt;&amp;nbsp;&lt;/h1&gt;&lt;h1&gt;&lt;br /&gt;&lt;select id='multi2' style='width:193px;'&gt;&lt;/select&gt;&lt;br /&gt;&lt;/h1&gt;&lt;button&gt;Pick Class&lt;/button&gt;")
  });
});
</code></pre>

<p>and 'multi2' can't be found .. do i have to pass a parameter or variable?.  here is the function to get multi2</p>

<pre><code>function childless() {

var s = document.getElementById('multi2');
var ar = [1,2,3];
for(var i=0; i&lt;ar.length; i++) {
var option = document.createElement('option');
option.text = ar[i];
option.value = ar[i];
s.options[i] = option;
}

}
</code></pre>

<p>it works if i dont change the div, any ideas?</p>
