title: How to append a jQuery variable value inside the .html tag
body: <p>I have a jquery variable which contains html tags to create checkboxes dynamically.
  Now as per my need i have to add this variable inside the .html tag of jquery to show the checkboxes inside the dialogue box ..Also my .html contains form tag to include the checkboxes code inside the form..</p>
  
  <p>Here is my variabel which contains the html tags..</p>
  
  <pre><code>var chbx=&lt;input type="checkbox"   id="Mumbai" name="Mumbai" value="Mumbai" /&gt;Mumbai&lt;br /&gt;
  &lt;input type="checkbox"   id=" Delhi" name=" Delhi" value=" Delhi" /&gt; Delhi&lt;br /&gt;\
  &lt;input type="checkbox"   id=" Bangalore" name=" Bangalore" value=" Bangalore" /&gt; Bangalore&lt;br /&gt;
  </code></pre>
  
  <p>And here is my .html tag containing form ..</p>
  
  <pre><code>var $dialog = $('&lt;div&gt;&lt;/div&gt;').html("&lt;form id='myform'&gt;" +chbx+ "&lt;/form&gt;")
          .dialog({
              autoOpen: false,
              title: 'Select Sites',
              buttons: {
                  "Submit": function() {  $('form#myform').submit();},
                  "Cancel": function() {$(this).dialog("close");}
              }
          });
  </code></pre>
  
  <p>i tried to append the variable like +chbx+ but its not happening and showing empty dialogue box..</p>